/* Mountain Forest Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E5266;
  --secondary-color: #8BC34A;
  --primary-dark: #1a3542;
  --primary-light: #4a7489;
  --secondary-dark: #6da135;
  --secondary-light: #a4d66d;
  --forest-overlay: rgba(46, 82, 102, 0.85);
  --mountain-gradient: linear-gradient(135deg, #2E5266 0%, #4a7489 100%);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow: 0 10px 40px rgba(46, 82, 102, 0.15);
  --box-shadow-hover: 0 20px 60px rgba(46, 82, 102, 0.25);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary-color);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -1px !important;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(180deg, rgba(46, 82, 102, 0.95) 0%, rgba(46, 82, 102, 0.85) 100%) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1030;
}

.navbar.sticky-top {
  animation: slideDown 0.5s ease-in-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.75rem !important;
  transition: var(--transition-smooth);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

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

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

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  padding: 0.5rem 0.75rem !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  transition: var(--transition-smooth);
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.05);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--mountain-gradient);
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0 300 L200 250 L400 350 L600 200 L800 280 L1000 220 L1200 300 L1200 600 L0 600 Z" fill="rgba(139,195,74,0.1)"/></svg>') no-repeat center bottom;
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.hero-wrapper .position-absolute {
  z-index: 0;
}

.hero-wrapper > .container-fluid,
.hero-wrapper > .container {
  position: relative;
  z-index: 2;
}

.hero-wrapper .text-white,
.hero-wrapper .display-1,
.hero-wrapper .display-3,
.hero-wrapper .lead {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-wrapper .text-white-50 {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn:hover::before {
  transform: translate(-50%, -50%) scale(2.5);
}

.btn-primary {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}

.btn-primary:hover {
  background: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 195, 74, 0.5);
  color: #ffffff !important;
}

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

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

.btn-outline-dark:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color) !important;
  color: 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;
  transform: translateY(-2px);
}

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

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

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

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

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

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

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

.shadow-sm {
  box-shadow: 0 2px 15px rgba(46, 82, 102, 0.08) !important;
}

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

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

/* Portfolio Section */
.filter-btn {
  margin: 0.5rem;
  min-width: 120px;
}

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

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 100%;
  min-height: 350px;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--forest-overlay);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  padding: 2rem;
  text-align: center;
}

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

.portfolio-overlay h3,
.portfolio-overlay p,
.portfolio-overlay .badge {
  color: #ffffff !important;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .badge {
  transform: translateY(0);
}

/* Badges */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
}

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

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

.bi-house-heart-fill,
.bi-leaf-fill,
.bi-building,
.bi-hammer,
.bi-tree-fill,
.bi-lightning-charge-fill,
.bi-tree,
.bi-droplet-fill,
.bi-recycle,
.bi-award-fill,
.bi-house-check-fill,
.bi-patch-check-fill,
.bi-sun-fill,
.bi-box-seam-fill,
.bi-moisture,
.bi-flower2 {
  color: var(--secondary-color) !important;
}

.fs-1 { font-size: 3rem !important; }
.fs-2 { font-size: 2.5rem !important; }
.fs-3 { font-size: 2rem !important; }
.fs-5 { font-size: 1.15rem !important; }
.fs-6 { font-size: 0.95rem !important; }

/* Rounded Images */
.rounded {
  border-radius: 20px !important;
}

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

.img-fluid {
  transition: var(--transition-smooth);
}

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

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

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

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

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

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

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

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

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

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

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

/* Links */
a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: var(--primary-color) !important;
  font-weight: 600;
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--secondary-color) !important;
}

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

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

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: var(--transition-smooth);
}

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

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

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

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  color: rgba(255, 255, 255, 0.8) !important;
}

.bi-facebook:hover { color: #1877f2 !important; }
.bi-instagram:hover { color: #e4405f !important; }
.bi-linkedin:hover { color: #0077b5 !important; }
.bi-twitter:hover { color: #1da1f2 !important; }

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 0.875rem 1.25rem !important;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.15) !important;
  outline: none;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem !important;
}

/* Border Utilities */
.border-start {
  border-left: 4px solid var(--secondary-color) !important;
}

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

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

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

/* Spacing Utilities */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* Display Utilities */
.d-inline-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Ratio */
.ratio-4x3 {
  aspect-ratio: 4/3;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(46, 82, 102, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .hero-wrapper {
    min-height: 70vh;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .fs-1 { font-size: 2.5rem !important; }
  .fs-2 { font-size: 2rem !important; }
  .fs-3 { font-size: 1.75rem !important; }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-5 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .display-1 {
    font-size: 2rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* 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: var(--secondary-color);
}

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

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

button:focus,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25) !important;
}

/* Utility Classes */
.text-primary-custom {
  color: var(--primary-color) !important;
}

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

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

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

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

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

/* Decorative Elements */
.section-divider {
  height: 4px;
  width: 80px;
  background: var(--secondary-color);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.section-divider-left {
  margin-left: 0;
  margin-right: auto;
}

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