/* ===================================
   ARCHITECTURAL STUDIO - FOREST GREEN & AMBER THEME
   Primary: #2E7D32 (Forest Green)
   Secondary: #FFC107 (Amber)
   =================================== */

/* ===================================
   ROOT VARIABLES
   =================================== */
:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(46, 125, 50, 0.1);
  --shadow-md: 0 4px 8px rgba(46, 125, 50, 0.15);
  --shadow-lg: 0 8px 16px rgba(46, 125, 50, 0.2);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===================================
   GLOBAL STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark) !important;
  margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 800;
  color: var(--text-dark) !important;
  letter-spacing: -0.02em;
}

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

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

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

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

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

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

.fw-medium {
  font-weight: 500 !important;
}

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

.fs-1 { font-size: 2.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }

/* ===================================
   NAVIGATION BAR
   =================================== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition-base);
  background-color: var(--primary-color) !important;
  box-shadow: var(--shadow-md);
}

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

.navbar.sticky-top {
  background-color: var(--bg-white) !important;
  box-shadow: var(--shadow-sm);
}

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

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

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: var(--text-light) !important;
  transition: var(--transition-base);
  letter-spacing: 0.5px;
}

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

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

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

.navbar-toggler {
  border: 2px solid var(--text-light) !important;
  padding: 0.5rem 0.75rem;
  transition: var(--transition-base);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 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");
}

.navbar-nav {
  align-items: center;
}

.nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition-base);
  position: relative;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.nav-link:hover {
  color: var(--secondary-color) !important;
  background-color: rgba(255, 193, 7, 0.1) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(255, 193, 7, 0.15) !important;
  font-weight: 600 !important;
}

.navbar-light .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(46, 125, 50, 0.1) !important;
}

.navbar-light .nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(46, 125, 50, 0.15) !important;
}

/* ===================================
   HERO SLIDESHOW
   =================================== */
.hero-slideshow {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.carousel {
  height: 100%;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  position: relative;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

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

.carousel-caption {
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 20%;
  text-align: left;
  padding: 0 2rem;
}

.carousel-caption .display-2 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  font-weight: 800;
}

.carousel-caption .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
  font-size: 1.4rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: var(--transition-base);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

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

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

/* Primary Button (Amber) */
.btn-primary,
.carousel-caption .btn {
  background-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-primary:hover,
.carousel-caption .btn:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-dark) !important;
}

/* Success Button (Forest Green) */
.btn-success {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-success:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--text-light) !important;
}

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

.btn-outline-success:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

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

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

.btn-outline-secondary.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

/* Secondary Button */
.bg-secondary,
.btn-secondary {
  background-color: var(--text-muted) !important;
  color: var(--text-light) !important;
}

/* ===================================
   BADGES
   =================================== */
.badge {
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

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

/* ===================================
   CARDS
   =================================== */
.card {
  border-radius: 12px;
  transition: var(--transition-base);
  overflow: hidden;
  background-color: var(--bg-white) !important;
  border: 1px solid rgba(46, 125, 50, 0.1) !important;
}

.card.border-0 {
  border: none !important;
}

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

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

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

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

.card-body {
  padding: 1.5rem;
}

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

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

/* ===================================
   PORTFOLIO STYLES
   =================================== */
.portfolio-item {
  margin-bottom: 2rem;
  cursor: pointer;
}

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

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(46, 125, 50, 0.7), rgba(27, 94, 32, 0.9));
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

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

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

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

/* ===================================
   FILTER BUTTONS
   =================================== */
.filter-btn {
  margin: 0.25rem;
  transition: var(--transition-base);
}

.filter-btn:hover {
  transform: translateY(-2px);
}

/* ===================================
   FORMS
   =================================== */
.form-control,
.form-select {
  border: 2px solid rgba(46, 125, 50, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  color: var(--text-dark) !important;
  background-color: var(--bg-white) !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.15) !important;
  outline: none;
}

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

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

.form-check-input {
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

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

.form-check-label {
  cursor: pointer;
  color: var(--text-dark) !important;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
}

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

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

.text-danger {
  color: #dc3545 !important;
}

/* ===================================
   PROGRESS BARS
   =================================== */
.progress {
  height: 12px;
  border-radius: 10px;
  background-color: rgba(46, 125, 50, 0.1) !important;
  overflow: hidden;
}

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

/* ===================================
   ACCORDION
   =================================== */
.accordion {
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  border: 1px solid rgba(46, 125, 50, 0.1) !important;
  background-color: var(--bg-white) !important;
  margin-bottom: 0.5rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

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

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

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

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

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

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

.accordion-collapse {
  border: none;
}

/* ===================================
   ALERTS
   =================================== */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background-color: rgba(46, 125, 50, 0.1) !important;
  color: var(--primary-dark) !important;
  border-left: 4px solid var(--primary-color);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1) !important;
  color: #856404 !important;
  border-left: 4px solid var(--secondary-color);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.opacity-25 { opacity: 0.25 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-90 { opacity: 0.9 !important; }

/* ===================================
   SPACING UTILITIES
   =================================== */
.container-fluid {
  padding-right: 1rem;
  padding-left: 1rem;
}

.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.ps-lg-4 { padding-left: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }

.m-3 { margin: 1rem !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; }
.mb-lg-0 { margin-bottom: 0 !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; }
.mt-lg-0 { margin-top: 0 !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* ===================================
   POSITIONING
   =================================== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.sticky-lg-top { position: sticky; top: 0; z-index: 1020; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.start-50 { left: 50% !important; }
.end-0 { right: 0 !important; }
.top-50 { top: 50% !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }

/* ===================================
   FLEXBOX UTILITIES
   =================================== */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

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

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

/* ===================================
   TEXT UTILITIES
   =================================== */
.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

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

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

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

/* ===================================
   MISC UTILITIES
   =================================== */
.overflow-hidden { overflow: hidden !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===================================
   BOOTSTRAP ICONS
   =================================== */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}

.bi-send-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clock-fill,
.bi-calendar-check,
.bi-briefcase-fill,
.bi-newspaper,
.bi-people-fill,
.bi-building,
.bi-info-circle,
.bi-pie-chart,
.bi-check-circle,
.bi-shield-lock,
.bi-share,
.bi-people,
.bi-tools,
.bi-file-text,
.bi-cookie,
.bi-clock-history,
.bi-person-check,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-x-circle,
.bi-download,
.bi-globe,
.bi-flag,
.bi-arrow-clockwise,
.bi-exclamation-triangle,
.bi-envelope,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-house-fill,
.bi-tree-fill,
.bi-box-seam,
.bi-sun-fill,
.bi-recycle,
.bi-award-fill,
.bi-star-fill,
.bi-patch-check-fill,
.bi-shield-fill-check,
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill,
.bi-5-circle-fill,
.bi-thermometer-half,
.bi-wind,
.bi-lightbulb-fill {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* ===================================
   GRID SYSTEM
   =================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

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

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.col,
.col-4,
.col-6,
.col-12,
.col-sm-6,
.col-md-2,
.col-md-3,
.col-md-4,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  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.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease;
}

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

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

.scale-in {
  animation: scaleIn 0.6s ease;
}

/* ===================================
   CAROUSEL TRANSITIONS
   =================================== */
.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* ===================================
   HOVER EFFECTS
   =================================== */
.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hover-scale {
  transition: var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background-color: var(--primary-dark) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6,
footer .h5,
footer .h6 {
  color: var(--text-light) !important;
  font-weight: 600;
}

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

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

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

/* ===================================
   RESPONSIVE DESIGN - TABLET
   =================================== */
@media (min-width: 768px) {
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .p-md-5 { padding: 3rem !important; }
  
  .order-md-1 { order: 1 !important; }
  .order-md-2 { order: 2 !important; }
}

/* ===================================
   RESPONSIVE DESIGN - DESKTOP
   =================================== */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .ps-lg-4 { padding-left: 1.5rem !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  .text-lg-end { text-align: right !important; }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .sticky-lg-top {
    position: sticky !important;
    top: 0 !important;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-light .navbar-collapse {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .carousel-caption .display-2 {
    font-size: 2rem;
  }
  
  .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.5rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .hero-slideshow {
    min-height: 500px;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .display-2 { font-size: 2rem; }
  .display-3 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  
  .hero-slideshow {
    height: 70vh;
    min-height: 400px;
  }
  
  .carousel-caption {
    bottom: 10%;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
  .navbar,
  .btn,
  .carousel,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

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

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ===================================
   SELECTION
   =================================== */
::selection {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

/* ===================================
   LOADING STATES
   =================================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(46, 125, 50, 0.1) 25%,
    rgba(46, 125, 50, 0.2) 50%,
    rgba(46, 125, 50, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ===================================
   SMOOTH SCROLL PADDING
   =================================== */
html {
  scroll-padding-top: 80px;
}

/* ===================================
   END OF STYLESHEET
   =================================== */