/* ===================================
   Forest & Amber Architecture Studio
   Theme Colors: #2E7D32 (Forest Green) & #FFC107 (Amber)
   =================================== */

:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFECB3;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* ===================================
   BASE STYLES
   =================================== */

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

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

html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  box-shadow: 0 2px 20px rgba(46, 125, 50, 0.3);
}

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

.navbar-light {
  background-color: var(--white) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

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

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

.navbar-brand {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-light .navbar-brand {
  color: var(--primary-color) !important;
  text-shadow: none !important;
}

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

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

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

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

.nav-link:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
}

.navbar-light .nav-link {
  color: var(--text-dark) !important;
  text-shadow: none !important;
}

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

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

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

/* ===================================
   HERO SECTION
   =================================== */

.hero-parallax {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #388E3C 100%);
  position: relative;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M50 5L60 35L90 35L67 52L75 82L50 65L25 82L33 52L10 35L40 35Z" fill="%23FFC107" opacity="0.1"/%3E%3C/svg%3E') repeat;
  animation: parallaxMove 60s linear infinite;
  opacity: 0.3;
}

@keyframes parallaxMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-100px) translateY(-100px);
  }
}

.parallax-overlay {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(46, 125, 50, 0.75) 50%, rgba(56, 142, 60, 0.85) 100%);
  z-index: 1;
}

.hero-parallax .container {
  position: relative;
  z-index: 2;
  height: 100vh;
}

.hero-parallax .text-white {
  color: var(--white) !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-parallax .display-2 {
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 900 !important;
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 1s ease-out;
  color: var(--white) !important;
}

.hero-parallax .lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
  font-weight: 400 !important;
  margin-bottom: 2rem !important;
  animation: fadeInUp 1.2s ease-out;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.animate-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: var(--transition) !important;
  border-width: 2px !important;
  letter-spacing: 0.5px;
  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:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.btn:active {
  transform: translateY(-1px) !important;
}

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

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

.btn-outline-light {
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--dark-bg) !important;
}

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

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

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--dark-bg) !important;
}

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

.btn-light:hover {
  background: var(--secondary-color) !important;
  color: var(--dark-bg) !important;
  border-color: var(--secondary-color) !important;
}

/* ===================================
   CARDS
   =================================== */

.card {
  border-radius: 15px !important;
  transition: var(--transition) !important;
  overflow: hidden;
  border: none !important;
}

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

.card-img-top {
  transition: var(--transition);
  height: 250px;
  object-fit: cover;
}

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

.card-body {
  background: var(--white) !important;
}

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.5rem rgba(46, 125, 50, 0.15) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1.5rem rgba(46, 125, 50, 0.2) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(46, 125, 50, 0.25) !important;
}

/* ===================================
   PORTFOLIO
   =================================== */

.filter-btn {
  margin: 0.5rem !important;
  background: transparent !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--text-light) !important;
}

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

.portfolio-masonry {
  column-count: 1;
  column-gap: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-masonry {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .portfolio-masonry {
    column-count: 3;
  }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

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

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

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

.portfolio-content {
  color: var(--white) !important;
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-content h4,
.portfolio-content .h4 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
}

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

/* ===================================
   BADGES
   =================================== */

.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  font-size: 0.85rem !important;
  background: var(--secondary-color) !important;
  color: var(--dark-bg) !important;
}

/* ===================================
   FORMS
   =================================== */

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

.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  font-size: 1rem !important;
}

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

.form-check-input {
  border: 2px solid var(--text-light) !important;
  border-radius: 5px !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
}

.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(46, 125, 50, 0.25) !important;
}

.form-check-label {
  margin-left: 0.5rem;
  color: var(--text-dark) !important;
}

/* ===================================
   ALERTS
   =================================== */

.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
}

/* ===================================
   ACCORDION
   =================================== */

.accordion-item {
  border: 1px solid rgba(46, 125, 50, 0.2) !important;
  border-radius: 10px !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
}

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0);
}

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

.accordion-body {
  padding: 1.5rem !important;
  background: var(--light-bg) !important;
}

.accordion-collapse {
  border: none !important;
}

/* ===================================
   TABLE
   =================================== */

.table-responsive {
  border-radius: 10px;
  overflow: hidden;
}

.table {
  margin-bottom: 0 !important;
}

.table thead {
  background: var(--primary-color) !important;
  color: var(--white) !important;
}

.table thead th {
  border: none !important;
  padding: 1rem !important;
  font-weight: 700 !important;
  color: var(--white) !important;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: rgba(46, 125, 50, 0.05) !important;
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle !important;
}

.table-bordered {
  border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

.table-bordered td,
.table-bordered th {
  border: 1px solid rgba(46, 125, 50, 0.1) !important;
}

/* ===================================
   FLOATING BUTTONS
   =================================== */

.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.floating-buttons .btn {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  font-size: 1.5rem;
  padding: 0 !important;
}

.floating-buttons .btn:hover {
  background: var(--secondary-color) !important;
  transform: scale(1.1) !important;
}

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

/* ===================================
   BACKGROUNDS
   =================================== */

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

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

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

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

/* ===================================
   UTILITIES
   =================================== */

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

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

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

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

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

.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

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

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

.object-fit-cover {
  object-fit: cover !important;
  width: 100%;
  height: 100%;
}

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

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

.position-sticky {
  position: sticky !important;
  top: 80px;
}

.overflow-hidden {
  overflow: hidden !important;
}

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

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

/* ===================================
   BOOTSTRAP ICONS
   =================================== */

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

.bi-chevron-down,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-arrow-right,
.bi-clock-fill,
.bi-train-front,
.bi-car-front,
.bi-bicycle,
.bi-cup-hot,
.bi-question-circle {
  font-size: 1.2rem;
}

/* ===================================
   SPACING UTILITIES
   =================================== */

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

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

.pb-3 {
  padding-bottom: 2rem !important;
}

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

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

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

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

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

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

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

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

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

.me-2 {
  margin-right: 0.5rem !important;
}

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

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(27, 94, 32, 0.98);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
  }
  
  .nav-link:hover {
    background: rgba(255, 193, 7, 0.2);
  }
  
  .hero-parallax {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 50px;
  }
  
  .hero-parallax .container {
    height: auto;
  }
  
  .floating-buttons {
    bottom: 1rem;
    right: 1rem;
  }
  
  .floating-buttons .btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2.2rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.8rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .position-sticky {
    position: relative !important;
    top: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-parallax {
    padding: 80px 0 30px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .floating-buttons {
    bottom: 0.5rem;
    right: 0.5rem;
  }
  
  .floating-buttons .btn {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
  .navbar,
  .floating-buttons,
  .btn,
  .animate-bounce {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  .hero-parallax {
    height: auto;
    page-break-after: always;
  }
}