/* Forest Professional Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #27AE60;
  --light-bg: #f8f9fa;
  --dark-overlay: rgba(44, 62, 80, 0.85);
  --transition-speed: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
.display-1, .display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

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

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

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

.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 !important;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

.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(39, 174, 96, 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") !important;
}

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

.position-relative.vh-100::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%3Cpath d="M30 0l30 30-30 30L0 30z" fill="%2327AE60" fill-opacity="0.05"/%3E%3C/svg%3E');
  opacity: 0.3;
  z-index: 1;
}

.position-relative.vh-100 .object-fit-cover {
  opacity: 0.3;
  filter: grayscale(20%);
}

.position-relative.vh-100 .position-absolute.top-50 {
  z-index: 10;
}

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

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

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

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

.btn-lg {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-lg:hover {
  background: #229954 !important;
  border-color: #229954 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

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

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

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

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

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

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

.filter-btn {
  margin: 0.5rem;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}

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

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

.container, .container-fluid {
  position: relative;
}

/* Image Styling */
.img-fluid {
  transition: all var(--transition-speed) ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

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

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

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

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Cards */
.card {
  border-radius: 15px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  border: none;
}

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

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #666;
}

/* Portfolio */
.portfolio-filters {
  margin-bottom: 3rem;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.portfolio-item.tall {
  grid-row: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-card {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(39, 174, 96, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.5s ease;
  padding: 2rem;
  text-align: center;
}

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

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

.view-details {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: 2px solid #ffffff;
  border-radius: 50px;
  transition: all var(--transition-speed) ease;
  margin-top: 1rem;
  display: inline-block;
}

.view-details:hover {
  background: #ffffff;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

/* Modal */
.modal-content {
  border-radius: 20px;
  border: none;
}

.modal-header {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 2rem;
}

.modal-body {
  padding: 2rem;
}

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

.btn-close:hover {
  opacity: 0.8;
}

/* Forms */
.form-control, .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  color: #333 !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.25) !important;
  background: #ffffff !important;
  color: #333 !important;
}

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

.form-check-input {
  border: 2px solid #e0e0e0;
  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(39, 174, 96, 0.25) !important;
}

.form-check-label {
  color: #333;
  margin-left: 0.5rem;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500;
}

.needs-validation .form-control:invalid {
  border-color: #dc3545;
}

.needs-validation .form-control:valid {
  border-color: var(--secondary-color);
}

/* Alert */
.alert {
  border-radius: 15px;
  padding: 1.5rem;
}

.alert-light {
  background: #f8f9fa;
  border-left: 5px solid var(--secondary-color) !important;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-color);
}

.timeline-item {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3rem;
  animation: fadeInLeft 0.6s ease-out;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  z-index: 2;
}

/* Before/After Container */
.before-after-container {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-instagram,
.bi-linkedin,
.bi-facebook,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-compass,
.bi-pencil-square,
.bi-gear,
.bi-hammer,
.bi-lightbulb-fill,
.bi-water,
.bi-lightning-charge-fill,
.bi-tree-fill,
.bi-recycle,
.bi-sun,
.bi-droplet,
.bi-heart-pulse,
.bi-chat-quote-fill,
.bi-arrow-down-circle-fill,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-5-circle-fill {
  color: var(--secondary-color);
}

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

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

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

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

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

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

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

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

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

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

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

footer .bi {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

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

.small {
  font-size: 0.875rem;
}

/* 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-4x3 {
  --bs-aspect-ratio: 75%;
}

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
  color: #333;
}

.privacy-content h2,
.privacy-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Sticky Elements */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

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

/* Navigation Sidebar */
.nav.flex-column {
  position: sticky;
  top: 100px;
}

.nav.flex-column .nav-link {
  color: var(--primary-color) !important;
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  transition: all var(--transition-speed) ease;
}

.nav.flex-column .nav-link:hover,
.nav.flex-column .nav-link.active {
  color: var(--secondary-color) !important;
  border-left-color: var(--secondary-color);
  background: rgba(39, 174, 96, 0.05);
}

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

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

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

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

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

.fw-semibold {
  font-weight: 600 !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

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

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

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

.align-items-start {
  align-items: flex-start !important;
}

.align-self-start {
  align-self: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-dark .navbar-nav .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;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item.tall,
  .portfolio-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

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

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

  .sticky-top,
  .position-sticky {
    position: relative !important;
    top: 0 !important;
  }

  .order-lg-1 {
    order: 1;
  }

  .order-lg-2 {
    order: 2;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }
}

@media (max-width: 767.98px) {
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem;
  }

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

  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

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

  .modal-dialog {
    margin: 0.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }
}

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

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .me-3 {
    margin-right: 0 !important;
  }

  .portfolio-grid {
    gap: 1rem;
  }

  .text-md-end,
  .text-lg-end {
    text-align: left !important;
  }

  .text-md-start {
    text-align: left !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}

/* Accessibility */
.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;
}

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

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border-width: 3px;
  }

  .card {
    border: 2px solid var(--primary-color);
  }
}

/* Reduced Motion */
@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 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #f0f0f0;
  }

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

  .card {
    background-color: #2a2a2a;
    color: #f0f0f0;
  }

  .form-control,
  .form-select {
    background-color: #2a2a2a;
    color: #f0f0f0 !important;
    border-color: #444;
  }
}