/* ===================================
   ARCHITECTURAL STUDIO THEME
   Forest Green & Amber
   Primary: #2E7D32 | Secondary: #FFC107
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFECB3;
  --dark-overlay: rgba(46, 125, 50, 0.85);
  --light-overlay: rgba(255, 193, 7, 0.15);
  --text-dark: #1B3A1C;
  --text-light: #F1F8E9;
  --transition-speed: 0.4s;
  --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.15);
  --shadow-md: 0 4px 16px rgba(46, 125, 50, 0.25);
  --shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.35);
}

/* === GLOBAL STYLES === */
* {
  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.7;
  background-color: #FAFAFA;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  color: var(--text-dark) !important;
  letter-spacing: -0.02em;
}

.display-3 { font-size: clamp(2.5rem, 5vw, 4.5rem) !important; }
.display-4 { font-size: clamp(2rem, 4vw, 3.5rem) !important; }
.display-5 { font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important; }
.display-6 { font-size: clamp(1.5rem, 3vw, 2.25rem) !important; }

.lead {
  font-size: clamp(1rem, 2vw, 1.35rem) !important;
  font-weight: 400;
  color: var(--text-dark) !important;
}

.fs-2 { font-size: clamp(1.5rem, 2.5vw, 2rem) !important; }
.fs-3 { font-size: clamp(1.25rem, 2vw, 1.75rem) !important; }
.fs-4 { font-size: clamp(1.1rem, 1.75vw, 1.5rem) !important; }
.fs-5 { font-size: clamp(1rem, 1.5vw, 1.25rem) !important; }

/* === NAVBAR === */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
  z-index: 1050 !important;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: var(--shadow-lg);
}

.navbar-brand {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar-toggler {
  border: 2px solid #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  padding: 0.5rem 0.75rem !important;
}

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

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
}

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

.nav-link.active {
  background-color: rgba(255, 193, 7, 0.2) !important;
}

/* === BUTTONS === */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  border: none !important;
  transition: all var(--transition-speed) ease !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  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.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

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

.btn-primary,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: #FFFFFF !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0D3D10 100%) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, #F57C00 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
}

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

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

.rounded-circle.btn {
  width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

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

.carousel,
.carousel-inner,
.carousel-item {
  height: 100vh !important;
}

.carousel-item {
  position: relative;
  transition: transform 1.2s ease-in-out !important;
}

.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--dark-overlay) 0%, rgba(27, 94, 32, 0.7) 100%);
  z-index: 1;
}

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

.carousel-caption {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left !important;
  left: 5% !important;
  right: 5% !important;
  max-width: 900px;
}

.carousel-caption .display-3,
.carousel-caption .display-4 {
  color: #FFFFFF !important;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem !important;
  animation: fadeInUp 1s ease-out;
}

.carousel-caption .lead {
  color: var(--secondary-light) !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  margin-bottom: 2rem !important;
  font-size: 1.35rem !important;
  animation: fadeInUp 1.2s ease-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 80px !important;
  height: 80px !important;
  top: 50% !important;
  transform: translateY(-50%);
  opacity: 0.7 !important;
  transition: all var(--transition-speed) ease !important;
}

.carousel-control-prev {
  left: 30px !important;
}

.carousel-control-next {
  right: 30px !important;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px !important;
  height: 40px !important;
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  box-shadow: var(--shadow-md);
}

/* === CARDS === */
.card {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease !important;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.card .small {
  color: #757575 !important;
}

/* === PORTFOLIO/MASONRY GRID === */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

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

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--dark-overlay) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: #FFFFFF;
}

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

.portfolio-overlay h4,
.portfolio-overlay h5 {
  color: #FFFFFF !important;
  margin-bottom: 0.5rem;
}

/* === FILTER BUTTONS === */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem;
  border-radius: 50px !important;
  transition: all var(--transition-speed) ease !important;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* === BADGES === */
.badge {
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  font-size: 0.875rem !important;
}

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

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

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

/* === FORMS === */
.form-label {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 12px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem;
  transition: all var(--transition-speed) ease !important;
  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;
  background-color: #FFFFFF;
}

.form-control::placeholder {
  color: #9E9E9E;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-color) !important;
  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);
}

/* === ALERTS === */
.alert {
  border-radius: 12px !important;
  border: none !important;
  padding: 1.25rem !important;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.alert-info {
  background-color: #E3F2FD !important;
  color: #0D47A1 !important;
}

.alert-warning {
  background-color: #FFF3E0 !important;
  color: #E65100 !important;
}

.alert-success {
  background-color: #E8F5E9 !important;
  color: var(--primary-dark) !important;
}

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

.accordion-item {
  border: 1px solid #E0E0E0 !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
}

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

.accordion-button {
  background-color: #FAFAFA !important;
  color: var(--text-dark) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  transition: all var(--transition-speed) ease !important;
}

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

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

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

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

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

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

/* === IMAGES === */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

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

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

/* === SECTIONS === */
section {
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

.text-white {
  color: #FFFFFF !important;
}

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

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

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

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

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

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

/* === ICONS (Bootstrap Icons) === */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-mortarboard-fill,
.bi-check-circle-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter,
.bi-phone,
.bi-envelope,
.bi-clock-fill,
.bi-share-fill,
.bi-list-ul,
.bi-info-circle,
.bi-clipboard-data,
.bi-gear,
.bi-share,
.bi-cookie,
.bi-shield-check,
.bi-eye,
.bi-pencil,
.bi-trash,
.bi-x-circle,
.bi-question-circle,
.bi-file-earmark-arrow-down,
.bi-lock,
.bi-exclamation-triangle,
.bi-calendar-check,
.bi-person-x,
.bi-arrow-repeat,
.bi-building,
.bi-geo-alt,
.bi-house-door,
.bi-tree,
.bi-layout-three-columns,
.bi-map,
.bi-clock-history {
  color: inherit;
}

.me-1 { margin-right: 0.25rem !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; }

/* === OPACITY === */
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

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

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

/* === LINKS === */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

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

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

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0D3D10 100%);
  color: #FFFFFF;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

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

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

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

footer .bi {
  color: var(--secondary-color);
  font-size: 1.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: #FFFFFF;
  transform: scale(1.2);
}

/* === 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.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out;
}

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out;
}

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

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

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

/* === SCROLL ANIMATIONS === */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* === LOADING SPINNER === */
.spinner-border {
  border-color: var(--primary-color);
  border-right-color: transparent;
}

/* === UTILITY SPACING === */
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.g-0 { gap: 0 !important; }
.g-2 > * { padding: 0.5rem !important; }
.g-3 > * { padding: 1rem !important; }
.g-4 > * { padding: 1.5rem !important; }

/* === CONTAINER === */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

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

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .carousel-caption {
    left: 3% !important;
    right: 3% !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
  }
  
  .carousel-control-prev {
    left: 10px !important;
  }
  
  .carousel-control-next {
    right: 10px !important;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 25px !important;
    height: 25px !important;
  }
  
  .btn {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* XXL Devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* === MOBILE MENU === */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0D3D10 100%);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-link {
    padding: 1rem !important;
    margin: 0.25rem 0;
  }
  
  .navbar-nav {
    gap: 0;
  }
}

/* === STICKY ELEMENTS === */
.sticky-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 1020 !important;
}

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

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

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

/* === OVERFLOW === */
.overflow-hidden {
  overflow: hidden !important;
}

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

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

.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-wrap {
  flex-wrap: wrap !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-center {
  align-items: center !important;
}

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

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

/* === DISPLAY UTILITIES === */
.d-block {
  display: block !important;
}

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

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

/* === WIDTH UTILITIES === */
.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

/* === MARGIN & PADDING === */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 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-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-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !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; }

/* === BORDER RADIUS === */
.rounded {
  border-radius: 12px !important;
}

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

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

/* === VISUALLY HIDDEN === */
.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;
}

/* === HOVER EFFECTS === */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

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

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-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);
}

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

/* === PRINT STYLES === */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000000 !important;
    background: #FFFFFF !important;
  }
}

/* === ACCESSIBILITY === */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary-color);
  color: #FFFFFF;
  padding: 1rem 2rem;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-content:focus {
  top: 0;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}