/* Forest Ember Architecture Studio - Custom Styles */

:root {
  --primary-color: #2C5530;
  --secondary-color: #F4A261;
  --dark-green: #1a3320;
  --light-green: #3d7045;
  --cream: #f8f5f0;
  --white: #ffffff;
  --text-dark: #2d2d2d;
  --text-light: #666666;
  --shadow: rgba(44, 85, 48, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6, .display-1, .display-3, .display-4, .display-5 {
  font-weight: 700;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* Hero Section */
.hero-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  position: relative;
}

.hero-image {
  opacity: 0.25;
  filter: grayscale(20%);
  animation: kenBurns 30s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes kenBurns {
  0% { transform: scale(1) translateX(0); }
  100% { transform: scale(1.1) translateX(-20px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

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

.hero-wrapper .display-3 {
  color: var(--white) !important;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-wrapper .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
  background: rgba(44, 85, 48, 0.95) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  z-index: 1000;
  border-bottom: 2px solid var(--secondary-color);
}

.navbar.sticky-top {
  box-shadow: 0 4px 20px var(--shadow);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: var(--transition);
}

.navbar-brand:hover::after {
  width: 100%;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  transition: var(--transition);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  transition: var(--transition);
  z-index: -1;
  opacity: 0.2;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(244, 162, 97, 0.15) !important;
  transform: translateY(-2px);
}

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

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px !important;
  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.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.btn-outline-light {
  color: var(--white) !important;
  border-color: var(--white) !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.btn-primary:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
}

.btn-secondary:hover {
  background-color: #e89250 !important;
  border-color: #e89250 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 162, 97, 0.3);
}

/* Cards & Project Cards */
.card {
  border: none !important;
  border-radius: 16px;
  transition: var(--transition);
  overflow: hidden;
  background: var(--white);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow) !important;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  min-height: 350px;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 85, 48, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-overlay h3,
.project-overlay h4,
.project-overlay h5 {
  color: var(--white) !important;
  margin-bottom: 0.75rem;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.card-img-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(44, 85, 48, 0.9) 100%);
}

/* Badges */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

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

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

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

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

.form-control::placeholder {
  color: var(--text-light) !important;
  opacity: 0.7;
}

/* Shadows */
.shadow {
  box-shadow: 0 8px 32px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 4px 16px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 16px 48px var(--shadow) !important;
}

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

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

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

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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

/* Icons */
.bi,
.fas,
.fa {
  transition: var(--transition);
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-camera,
.bi-linkedin,
.bi-instagram,
.bi-facebook,
.bi-gear-fill,
.bi-check-circle-fill,
.bi-building,
.bi-arrow-right-circle-fill,
.bi-rulers,
.bi-clipboard-check,
.bi-file-earmark-text,
.bi-question-circle,
.bi-chat-dots,
.fa-fire-alt,
.fa-check-circle,
.fa-arrow-right,
.fa-times-circle,
.fa-certificate,
.fa-home,
.fa-leaf,
.fa-recycle,
.fa-map-marker-alt,
.fa-phone,
.fa-envelope {
  color: var(--secondary-color) !important;
}

.text-white .bi,
.text-white .fas,
.text-white .fa {
  color: var(--white) !important;
}

.fa-3x {
  font-size: 3rem !important;
}

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

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

/* Icon containers */
.rounded-circle {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(244, 162, 97, 0.1) !important;
  transition: var(--transition);
}

.rounded-circle:hover {
  background-color: var(--secondary-color) !important;
  transform: scale(1.1) rotate(5deg);
}

.rounded-circle:hover .bi,
.rounded-circle:hover .fas,
.rounded-circle:hover .fa {
  color: var(--white) !important;
}

/* Lists */
.list-unstyled li {
  padding: 0.75rem 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-unstyled li:hover {
  padding-left: 0.5rem;
  color: var(--secondary-color) !important;
}

/* Accordion */
.accordion-item {
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--cream) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(244, 162, 97, 0.15) !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(28%) sepia(34%) saturate(892%) hue-rotate(83deg) brightness(94%) contrast(91%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(100%);
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
  color: var(--text-dark) !important;
}

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

.alert-success {
  background-color: rgba(44, 85, 48, 0.1) !important;
  color: var(--primary-color) !important;
}

.alert-warning {
  background-color: rgba(244, 162, 97, 0.1) !important;
  color: #d4811f !important;
}

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

.timeline-container::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-container .card {
  margin-left: 80px;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-container .card::before {
  content: '';
  position: absolute;
  left: -65px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 4px var(--secondary-color);
}

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

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

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

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

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

/* Borders */
.border-top {
  border-top: 2px solid rgba(0, 0, 0, 0.1) !important;
}

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

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

/* Image Styling */
.img-fluid {
  border-radius: 16px;
  transition: var(--transition);
}

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

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

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

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

/* Links */
a {
  color: var(--secondary-color) !important;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color) !important;
  text-decoration: none;
}

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

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

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

/* Opacity Classes */
.opacity-25 {
  opacity: 0.25 !important;
}

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

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

/* Positioning */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky,
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.start-0 {
  left: 0;
}

.end-0 {
  right: 0;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Display Classes */
.d-none {
  display: none !important;
}

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

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

/* Flex Utilities */
.flex-column {
  flex-direction: column !important;
}

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

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

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

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

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

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

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

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

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

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

.gap-3 {
  gap: 1rem !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);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

.animate-scale {
  animation: scaleIn 0.5s ease-out;
}

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

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

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

footer h3,
footer h4,
footer h5,
footer .h5 {
  color: var(--white) !important;
  margin-bottom: 1.5rem;
}

footer p,
footer .small {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

footer .border-top {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Social Media Icons */
.bi-linkedin:hover,
.bi-instagram:hover,
.bi-facebook:hover {
  transform: scale(1.2) rotate(5deg);
  color: var(--secondary-color) !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 85, 48, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  .navbar-nav {
    gap: 0.5rem !important;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.25rem;
  }
  
  .hero-wrapper {
    min-height: 80vh;
  }
  
  .display-1,
  .display-3,
  .display-4,
  .display-5 {
    font-size: calc(1.5rem + 2vw) !important;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .timeline-container::before {
    left: 15px;
  }
  
  .timeline-container .card {
    margin-left: 50px;
  }
  
  .timeline-container .card::before {
    left: -50px;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .btn-lg {
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .project-card {
    min-height: 280px;
  }
  
  .rounded-circle {
    width: 50px;
    height: 50px;
  }
  
  .fa-3x {
    font-size: 2.25rem !important;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .p-4 {
    padding: 1.5rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .my-5 {
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-6,
  .col-md-4,
  .col-md-8 {
    margin-bottom: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333% !important;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667% !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .shadow,
  .shadow-sm,
  .shadow-lg {
    box-shadow: none !important;
  }
}

/* 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-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--secondary-color);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

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

/* Selection */
::selection {
  background: var(--secondary-color);
  color: var(--white);
}

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