/* Forest Amber Architecture Studio Theme - CSS */

/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
  --primary-color: #2E7D32;
  --secondary-color: #FFC107;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --shadow-sm: 0 2px 4px rgba(46, 125, 50, 0.1);
  --shadow-md: 0 4px 6px rgba(46, 125, 50, 0.15);
  --shadow-lg: 0 10px 25px rgba(46, 125, 50, 0.2);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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

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

/* ===================================
   Typography Overrides
   =================================== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--primary-dark) !important;
  line-height: 1.2 !important;
  margin-bottom: 1rem;
}

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

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

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

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

/* ===================================
   Navbar Styles
   =================================== */
.navbar {
  padding: 1rem 0 !important;
  transition: var(--transition-base);
  z-index: 1050;
  backdrop-filter: blur(10px);
}

.navbar-dark {
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(27, 94, 32, 0.95)) !important;
  box-shadow: var(--shadow-md);
}

.navbar-light {
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

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

.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='%23FFC107' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  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,
.nav-link.active {
  background-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  transform: translateY(-2px);
}

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

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

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

/* ===================================
   Carousel Styles
   =================================== */
.carousel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

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

.carousel-inner {
  min-height: 100vh;
}

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

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(27, 94, 32, 0.6));
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.7);
}

.carousel-caption {
  position: absolute !important;
  top: 50% !important;
  left: 10% !important;
  right: 10% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left !important;
  padding: 2rem;
}

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

.carousel-caption .lead,
.carousel-caption .fs-3,
.carousel-caption .fs-4 {
  color: var(--secondary-light) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

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

.carousel-indicators {
  z-index: 15;
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--text-light);
  opacity: 0.6;
  transition: var(--transition-base);
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5% !important;
  opacity: 0.8;
  transition: var(--transition-base);
  z-index: 15;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 0.5rem;
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: 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-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark)) !important;
  color: var(--text-dark) !important;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color)) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

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

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

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

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

.btn-group .btn {
  border-radius: 8px !important;
  margin: 0 0.25rem;
}

/* ===================================
   Card & Content Sections
   =================================== */
.container,
.container-fluid {
  position: relative;
  z-index: 1;
}

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

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

.row {
  margin-left: 0;
  margin-right: 0;
}

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

.card,
.p-4,
.p-5 {
  background-color: #ffffff;
  border-radius: 16px;
  transition: var(--transition-base);
}

.text-center .p-4 {
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(46, 125, 50, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-center .p-4:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.h4,
.h5 {
  color: var(--primary-color) !important;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  transition: var(--transition-base);
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   Portfolio & Project Cards
   =================================== */
.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: var(--transition-base);
  height: 350px;
}

.portfolio-card {
  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 top, rgba(46, 125, 50, 0.95), transparent);
  opacity: 0;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--text-light);
}

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

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

.portfolio-overlay h4 {
  color: var(--text-light) !important;
  margin-bottom: 0.5rem;
}

.portfolio-overlay p {
  color: var(--secondary-light) !important;
}

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

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

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

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

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

.end-0 {
  right: 0 !important;
}

.top-0 {
  top: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.top-50 {
  top: 50% !important;
}

.start-50 {
  left: 50% !important;
}

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

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

/* ===================================
   Form Styles
   =================================== */
.form-control,
.form-select {
  border: 2px solid rgba(46, 125, 50, 0.2) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition-base);
  font-size: 1rem;
  background-color: #ffffff;
}

.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-label {
  font-weight: 600 !important;
  color: var(--primary-dark) !important;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-color) !important;
  border-radius: 4px;
  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 {
  margin-left: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

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

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

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.was-validated .form-control:valid,
.form-control.is-valid {
  border-color: var(--primary-color) !important;
}

/* ===================================
   Alert Styles
   =================================== */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500;
}

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

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

/* ===================================
   Accordion Styles
   =================================== */
.accordion {
  --bs-accordion-border-color: rgba(46, 125, 50, 0.1);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.15);
}

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

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

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

.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-color: var(--primary-color);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232E7D32'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

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

/* ===================================
   Progress Bar Styles
   =================================== */
.progress {
  height: 1.5rem !important;
  border-radius: 10px !important;
  background-color: rgba(46, 125, 50, 0.1) !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light)) !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 1s ease;
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent) !important;
  background-size: 1rem 1rem;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* ===================================
   Icon Styles
   =================================== */
.bi {
  display: inline-block;
  vertical-align: middle;
  font-size: 1.5rem;
}

.bi-lg {
  font-size: 2.5rem;
}

.bi-xl {
  font-size: 3.5rem;
}

/* Icon colors */
.text-center .bi,
.p-4 .bi {
  color: var(--secondary-color);
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: var(--transition-base);
}

.text-center .p-4:hover .bi {
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

/* ===================================
   Background Utilities
   =================================== */
.bg-light {
  background-color: var(--bg-light) !important;
}

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

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

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark .display-1,
.bg-dark .display-2,
.bg-dark .display-3,
.bg-dark .display-4,
.bg-dark .display-5,
.bg-dark .display-6 {
  color: var(--text-light) !important;
}

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

/* ===================================
   Border Utilities
   =================================== */
.border {
  border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

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

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

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

.border-secondary {
  border-color: rgba(255, 193, 7, 0.3) !important;
}

/* ===================================
   List Styles
   =================================== */
.list-unstyled {
  list-style: none;
  padding-left: 0;
}

.list-unstyled li {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.list-unstyled a {
  color: var(--text-dark) !important;
  text-decoration: none;
  transition: var(--transition-base);
}

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

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

/* ===================================
   Footer Styles
   =================================== */
footer {
  background: linear-gradient(135deg, var(--primary-dark), rgba(27, 94, 32, 0.95));
  color: var(--text-light);
}

footer h5,
footer h6 {
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
}

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

footer a:hover {
  color: var(--secondary-color) !important;
}

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

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

.mt-0 { margin-top: 0 !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; }

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

.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; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

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

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

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

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

.ps-md-5 { padding-left: 3rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-md-5 { padding-right: 3rem !important; }

/* ===================================
   Flexbox Utilities
   =================================== */
.d-flex { display: 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; }

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

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

.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }

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

/* ===================================
   Width & Height Utilities
   =================================== */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !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);
  }
}

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

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

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

/* ===================================
   Responsive Design - Mobile First
   =================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-md-0 {
    margin-top: 0 !important;
  }
  
  .order-md-1 {
    order: 1 !important;
  }
  
  .order-md-2 {
    order: 2 !important;
  }
  
  .ps-md-5 {
    padding-left: 3rem !important;
  }
  
  .pe-md-5 {
    padding-right: 3rem !important;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.666667%;
  }
  
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.666667%;
  }
  
  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.666667%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.333333%;
  }
  
  .offset-lg-1 {
    margin-left: 8.333333%;
  }
  
  .offset-lg-2 {
    margin-left: 16.666667%;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .navbar-nav {
    padding: 1rem 0;
    background-color: rgba(46, 125, 50, 0.98);
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .nav-link {
    margin: 0.25rem 0 !important;
    text-align: center;
  }
  
  .carousel-caption {
    left: 5% !important;
    right: 5% !important;
    padding: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .display-5 {
    font-size: 1.5rem !important;
  }
  
  .display-6 {
    font-size: 1.25rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 10% !important;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
  }
}

/* Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 991px) {
  .carousel-caption {
    left: 8% !important;
    right: 8% !important;
  }
  
  .display-2 {
    font-size: 3rem !important;
  }
  
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Accessibility Improvements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Smooth Transitions for All Interactive Elements */
a,
button,
.btn,
.nav-link,
.card,
.portfolio-item,
img {
  transition: var(--transition-base);
}

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

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

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

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

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

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