/* Forest & Stone Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #8D6E63;
  --dark-overlay: rgba(46, 125, 50, 0.85);
  --light-overlay: rgba(141, 110, 99, 0.1);
  --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-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: #2E7D32 !important;
}

.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: #fff !important;
}

.lead, .fs-3 {
  color: #555;
  font-weight: 300;
}

.text-white.lead,
.text-white.fs-3 {
  color: #fff !important;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(141, 110, 99, 0.95)) !important;
  backdrop-filter: blur(10px);
  transition: all var(--transition-speed) ease;
  z-index: 1050;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.98), rgba(141, 110, 99, 0.98)) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  transition: all var(--transition-speed);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #f1f8e9;
  transition: all var(--transition-speed);
  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: #f1f8e9 !important;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.navbar-toggler {
  border-color: #fff !important;
  padding: 0.5rem;
}

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

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

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

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.7), rgba(141, 110, 99, 0.5));
  z-index: 1;
}

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

.carousel .position-absolute {
  z-index: 2;
}

.carousel-fade .carousel-item {
  transition-duration: 1s;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  border-radius: 8px;
  border: none;
}

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

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

.btn-primary:hover {
  background: #1b5e20 !important;
  border-color: #1b5e20 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3) !important;
  color: #fff !important;
}

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

.btn-outline-dark:hover {
  background: #333 !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

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

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

.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: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(141, 110, 99, 0.3) !important;
}

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

.btn-outline-success:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3) !important;
}

.btn-dark {
  background: #333 !important;
  color: #fff !important;
  border: 2px solid #333 !important;
}

.btn-dark:hover {
  background: #000 !important;
  border-color: #000 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  color: #fff !important;
}

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

.btn-success:hover {
  background: #1b5e20 !important;
  border-color: #1b5e20 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.3) !important;
  color: #fff !important;
}

/* Cards */
.card {
  transition: all var(--transition-speed);
  border: none !important;
  overflow: hidden;
  height: 100%;
}

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

.card.border-0 {
  background: #fff;
  border-radius: 12px;
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: #555 !important;
  line-height: 1.8;
}

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

.hover-lift:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Portfolio Cards */
.portfolio-item {
  transition: all var(--transition-speed);
  cursor: pointer;
}

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(141, 110, 99, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-speed);
}

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

.portfolio-overlay .text-white {
  color: #fff !important;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
  border-radius: 50px !important;
  transition: all var(--transition-speed);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3) !important;
}

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 500px;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.85), rgba(141, 110, 99, 0.75));
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

.parallax-section .text-white {
  color: #fff !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(--primary-color);
  transform: translateX(-50%);
}

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

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

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

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

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

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

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

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

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

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

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

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

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

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

.bg-dark {
  background-color: #212529 !important;
}

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

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

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

.bg-opacity-10 {
  opacity: 0.1;
}

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

.bi::before {
  display: inline-block;
  font-family: 'bootstrap-icons';
}

.bi-geo-alt-fill::before { content: '📍'; }
.bi-clock-fill::before { content: '🕐'; }
.bi-telephone-fill::before { content: '📞'; }
.bi-phone::before { content: '📱'; }
.bi-envelope::before { content: '✉️'; }
.bi-envelope-fill::before { content: '✉️'; }
.bi-instagram::before { content: '📷'; }
.bi-linkedin::before { content: '💼'; }
.bi-facebook::before { content: '📘'; }
.bi-twitter::before { content: '🐦'; }
.bi-lightbulb-fill::before { content: '💡'; }
.bi-send::before { content: '✈️'; }
.bi-pin-map::before { content: '📌'; }
.bi-chat-dots::before { content: '💬'; }
.bi-building::before { content: '🏢'; }
.bi-globe::before { content: '🌍'; }
.bi-geo-alt::before { content: '📍'; }
.bi-telephone::before { content: '☎️'; }
.bi-tree-fill::before { content: '🌲'; }
.bi-award-fill::before { content: '🏆'; }
.bi-house-heart-fill::before { content: '🏠'; }
.bi-tree::before { content: '🌳'; }
.bi-cloud-slash::before { content: '☁️'; }
.bi-lightning-charge-fill::before { content: '⚡'; }
.bi-droplet-fill::before { content: '💧'; }
.bi-recycle::before { content: '♻️'; }
.bi-check-circle-fill::before { content: '✅'; }
.bi-arrow-right::before { content: '→'; }
.bi-currency-dollar::before { content: '💲'; }
.bi-clock-history::before { content: '🕒'; }
.bi-tools::before { content: '🔧'; }
.bi-file-earmark-ruled::before { content: '📄'; }

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all var(--transition-speed);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25) !important;
  outline: none;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #e0e0e0;
  cursor: pointer;
}

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

.form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
}

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

.progress-bar {
  background-color: var(--primary-color) !important;
  transition: width 1s ease;
}

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 50px;
}

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

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

/* Text Utilities */
.text-muted {
  color: #6c757d !important;
}

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

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

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

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

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

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

/* Footer */
footer {
  background: linear-gradient(135deg, #212529, #333);
  color: #fff;
}

footer a {
  color: #fff !important;
  text-decoration: none;
  transition: all var(--transition-speed);
}

footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

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

footer .bi {
  font-size: 1.5rem;
}

/* Sticky Elements */
.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1020;
}

.position-fixed {
  position: fixed !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

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

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

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

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

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

.border-start {
  border-left: 3px solid var(--primary-color) !important;
}

.border-end {
  border-right: 3px solid var(--primary-color) !important;
}

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

/* Privacy Content */
.privacy-content {
  line-height: 2;
}

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

.privacy-content p {
  color: #555;
  margin-bottom: 1.5rem;
}

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

@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);
  }
}

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

.animate-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.animate-right {
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
}

.animate-scale {
  opacity: 0;
  animation: scaleIn 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.98), rgba(141, 110, 99, 0.98));
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }

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

  .navbar-dark .navbar-nav .nav-link {
    margin: 0.25rem 0;
    padding: 0.75rem 1rem;
  }

  .carousel {
    height: 70vh;
    min-height: 500px;
  }

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

  .display-3 {
    font-size: 2.5rem !important;
  }

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

  section {
    padding: 3rem 0;
  }

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

  .timeline-container::before {
    left: 0;
  }
}

@media (max-width: 767.98px) {
  .carousel {
    height: 60vh;
    min-height: 400px;
  }

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

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

  .display-4 {
    font-size: 1.75rem !important;
  }

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

  section {
    padding: 2rem 0;
  }

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

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .parallax-section {
    background-attachment: scroll;
    min-height: 400px;
  }

  .portfolio-card {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .carousel {
    height: 50vh;
    min-height: 350px;
  }

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

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

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

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

  .portfolio-card {
    height: 200px;
  }
}

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

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

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

/* 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(--primary-color);
  outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #1b5e20;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: #fff;
}

::-moz-selection {
  background: var(--primary-color);
  color: #fff;
}

/* Loader */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.overlay.active {
  display: flex;
}