/* Architectural Studio - Forest Sage & Golden Sand Theme */
/* Base & CSS Variables */
:root {
  --primary-color: #2C5530;
  --secondary-color: #F4A460;
  --primary-dark: #1a3320;
  --primary-light: #3d6f42;
  --secondary-dark: #d88b45;
  --secondary-light: #f7bb85;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --dark-text: #212529;
  --muted-text: #6c757d;
  --transition: all 0.3s ease;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

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

html {
  scroll-behavior: smooth;
}

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

.lead, .fs-4, .fs-5 {
  color: var(--dark-text) !important;
}

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

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(44, 85, 48, 0.3);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1050;
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 164, 96, 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='%23F4A460' 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;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
}

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

/* Carousel Styles */
.carousel {
  height: 100vh;
  min-height: 600px;
}

.carousel-inner,
.carousel-item {
  height: 100%;
}

.carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.75) 0%, rgba(244, 164, 96, 0.5) 100%);
  z-index: 1;
}

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

.carousel-caption {
  z-index: 2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 900px;
}

.carousel-caption h2,
.carousel-caption .display-2,
.carousel-caption .display-3 {
  color: var(--white) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption p,
.carousel-caption .lead {
  color: var(--white) !important;
  font-size: 1.3rem;
  font-weight: 400;
  animation: fadeInUp 1.2s ease-out;
}

.carousel-control-prev,
.carousel-control-next {
  opacity: 0.7;
  transition: var(--transition);
  z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(44, 85, 48, 0.6);
  border-radius: 50%;
  padding: 2rem;
}

/* Button Styles */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

.btn-primary,
.btn.px-5 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--white) !important;
  border: 2px solid transparent !important;
  padding: 0.75rem 2rem !important;
}

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

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

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

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

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

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(244, 164, 96, 0.3);
}

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

.btn-sm {
  padding: 0.5rem 1.2rem !important;
  font-size: 0.9rem !important;
}

.btn-close {
  filter: brightness(0) invert(1);
}

.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 164, 96, 0.25);
}

/* Filter Button Styles */
.filter-btn {
  background: var(--light-bg) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  margin: 0.25rem;
}

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

/* Card Styles */
.card {
  border: none !important;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

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

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

.card img {
  transition: var(--transition);
}

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

/* Shadow Utilities */
.shadow {
  box-shadow: var(--shadow) !important;
}

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Section Styles */
section {
  position: relative;
  overflow: hidden;
}

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

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

.py-3 {
  padding: 2rem 0 !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

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

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

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

.bi::before {
  font-size: inherit;
}

/* Portfolio Item Styles */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.8) 0%, rgba(244, 164, 96, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-item .position-absolute {
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
  color: var(--white) !important;
}

.portfolio-item:hover .position-absolute {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: var(--transition);
  color: var(--dark-text) !important;
  background: var(--white) !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;
  outline: none;
}

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

.form-check-input {
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

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

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

.form-check-label {
  color: var(--dark-text) !important;
  cursor: pointer;
}

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

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

/* Modal Styles */
.modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-bottom: none;
  padding: 1.5rem;
}

.modal-header h5,
.modal-header .h5 {
  color: var(--white) !important;
  margin: 0;
}

.modal-body {
  padding: 2rem;
}

/* Badge Styles */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

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

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

/* Timeline Styles */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-color);
}

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

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

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

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

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

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

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
}

footer h5,
footer .h5 {
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

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

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

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

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

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

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

/* Border Utilities */
.border-0 {
  border: 0 !important;
}

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

/* Position Utilities */
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

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

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

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

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

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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

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

.hover-scale {
  transition: var(--transition);
}

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

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(44, 85, 48, 0.1);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(26, 51, 32, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .nav-link::before {
    display: none;
  }
  
  .carousel {
    height: 70vh;
    min-height: 500px;
  }
  
  .carousel-caption h2,
  .carousel-caption .display-2,
  .carousel-caption .display-3 {
    font-size: 2rem !important;
  }
  
  .carousel-caption p,
  .carousel-caption .lead {
    font-size: 1rem !important;
  }
  
  .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;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .timeline-container {
    padding-left: 1.5rem;
  }
  
  .timeline-item {
    padding-left: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .carousel {
    height: 60vh;
    min-height: 450px;
  }
  
  .carousel-caption {
    padding: 1rem;
  }
  
  .carousel-caption h2,
  .carousel-caption .display-2,
  .carousel-caption .display-3 {
    font-size: 1.5rem !important;
  }
  
  .carousel-caption p,
  .carousel-caption .lead {
    font-size: 0.9rem !important;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .py-5 {
    padding: 2.5rem 0 !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .carousel {
    height: 50vh;
    min-height: 400px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    padding: 1.5rem;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .display-4 {
    font-size: 1.35rem !important;
  }
  
  .py-5 {
    padding: 2rem 0 !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}

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

:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control {
    border: 2px solid currentColor;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  /* Uncomment if dark mode is needed */
  /*
  :root {
    --light-bg: #1a1a1a;
    --white: #2d2d2d;
    --dark-text: #f0f0f0;
    --muted-text: #b0b0b0;
  }
  */
}