/* Forest Gold Elegance - Architecture Studio Theme */

/* ===========================
   CSS VARIABLES & BASE STYLES
   =========================== */
:root {
  --primary-color: #2C5530;
  --secondary-color: #B8860B;
  --primary-dark: #1a3320;
  --primary-light: #3d7343;
  --secondary-dark: #8b6709;
  --secondary-light: #d4a520;
  --text-dark: #1a1a1a;
  --text-light: #f8f9fa;
  --bg-light: #f5f5f0;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(44, 85, 48, 0.1);
  --shadow-md: 0 4px 8px rgba(44, 85, 48, 0.15);
  --shadow-lg: 0 8px 16px rgba(44, 85, 48, 0.2);
}

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

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

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: var(--primary-color) !important;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-dark) !important;
}

.text-white,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .display-1, .text-white .display-2, .text-white .display-3,
.text-white .display-4, .text-white .display-5, .text-white .display-6 {
  color: #ffffff !important;
}

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

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

/* ===========================
   NAVBAR STYLES
   =========================== */
.navbar {
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
  z-index: 1000;
}

.navbar.sticky-top {
  background: rgba(44, 85, 48, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

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

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(184, 134, 11, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--secondary-color);
}

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

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

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.hero-image {
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.7);
  animation: zoomIn 20s ease-in-out infinite alternate;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.8) 0%, rgba(44, 85, 48, 0.6) 100%);
  z-index: 1;
}

.hero-section .position-absolute {
  z-index: 2;
}

.hero-section .text-center {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: var(--transition);
  border: none;
  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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* ===========================
   CARDS
   =========================== */
.card {
  border: none !important;
  border-radius: 8px;
  transition: var(--transition);
  background: #ffffff;
  overflow: hidden;
}

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

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

.card.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(44, 85, 48, 0.25) !important;
}

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

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.6;
}

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

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

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

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

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

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-dark .display-1, .bg-dark .display-2, .bg-dark .display-3,
.bg-dark .display-4, .bg-dark .display-5, .bg-dark .display-6 {
  color: #ffffff !important;
}

.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ===========================
   BADGES
   =========================== */
.badge {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

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

/* ===========================
   PROJECT ITEMS & FILTERS
   =========================== */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

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

.project-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.project-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.9) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.project-item:hover::after {
  opacity: 1;
}

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: #6c757d !important;
}

.form-check-input {
  border: 2px solid #dee2e6 !important;
  width: 1.25rem;
  height: 1.25rem;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25) !important;
}

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

.alert {
  border-radius: 4px;
  padding: 1rem 1.5rem;
  border: none;
  margin-bottom: 1.5rem;
}

.alert.alert-danger {
  background: #dc3545 !important;
  color: #ffffff !important;
}

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

/* ===========================
   ICONS (Bootstrap Icons)
   =========================== */
.bi {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.bi-shield-check,
.bi-collection,
.bi-gear,
.bi-check-circle-fill,
.bi-people,
.bi-code-square,
.bi-hand-thumbs-up,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-x-circle,
.bi-lock,
.bi-question-circle,
.bi-envelope,
.bi-telephone,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock,
.bi-award,
.bi-search,
.bi-arrow-right,
.bi-graph-up-arrow,
.bi-lightbulb,
.bi-hourglass-split {
  display: inline-block;
  vertical-align: middle;
}

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

.fs-3 {
  font-size: 1.75rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

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

.fs-6 {
  font-size: 1rem !important;
}

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

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

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

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

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

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

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

/* ===========================
   TIMELINE
   =========================== */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
  transform: translateX(-50%);
}

.timeline-container .row {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-container .row::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ===========================
   MODAL
   =========================== */
.modal {
  z-index: 1050;
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

.modal-content {
  border-radius: 8px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--primary-dark) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 3rem 0 1.5rem;
}

footer h6,
footer .h6 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

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

footer .small {
  font-size: 0.9rem;
}

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

/* ===========================
   UTILITIES
   =========================== */
.text-decoration-none {
  text-decoration: none !important;
}

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

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

.border {
  border: 1px solid #dee2e6 !important;
}

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

.border-4 {
  border-width: 4px !important;
}

.border-top {
  border-top: 1px solid #dee2e6 !important;
}

.fst-italic {
  font-style: italic !important;
}

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

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

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

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

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

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 85, 48, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .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;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .timeline-container::before {
    left: 30px;
  }
  
  .timeline-container .row::before {
    left: 30px;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 70vh;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .px-4,
  .px-lg-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
  
  footer {
    text-align: center !important;
  }
  
  footer .text-md-end,
  footer .text-lg-end {
    text-align: center !important;
  }
}

/* ===========================
   SCROLL BEHAVIOR
   =========================== */
html {
  scroll-behavior: smooth;
}

/* ===========================
   SELECTION
   =========================== */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

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

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

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

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

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

/* ===========================
   HOVER EFFECTS
   =========================== */
.hover-effect {
  transition: var(--transition);
}

.hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

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

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

/* ===========================
   LOADING ANIMATION
   =========================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================
   ADDITIONAL OVERRIDES
   =========================== */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

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

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

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

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

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

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

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

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

.p-0 {
  padding: 0 !important;
}

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

/* ===========================
   ACCESSIBILITY
   =========================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}