/* Forest Green Elegance - Architectural Studio CSS */

/* ============================================
   ROOT VARIABLES & IMPORTS
   ============================================ */
:root {
  --primary-color: #2C5F2D;
  --secondary-color: #97BC62;
  --dark-green: #1a3a1b;
  --light-green: #d4e7c5;
  --text-dark: #2d2d2d;
  --text-light: #6c757d;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(44, 95, 45, 0.1);
  --shadow-md: 0 4px 12px rgba(44, 95, 45, 0.15);
  --shadow-lg: 0 8px 24px rgba(44, 95, 45, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: #fafafa;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
  color: var(--text-dark) !important;
}

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

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

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

.text-muted {
  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-semibold {
  font-weight: 600 !important;
}

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

.fs-1 {
  font-size: 2.5rem !important;
}

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

.lh-lg {
  line-height: 1.8 !important;
}

h2, .h2 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

h4, .h4 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
}

h5, .h5 {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--text-dark) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  padding: 1rem 0 !important;
  transition: var(--transition);
  background-color: #ffffff !important;
}

.navbar.sticky-top {
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

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

.navbar-light .navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

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

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

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 70%;
}

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

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

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

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px !important;
  transition: var(--transition) !important;
  border: 2px solid transparent !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

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

.btn-primary,
.btn[style*="background"] {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn[style*="background"]:hover {
  background-color: var(--dark-green) !important;
  border-color: var(--dark-green) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-outline-success:hover,
.btn-outline-success.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.filter-btn {
  margin: 0.5rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
}

.btn-close {
  filter: brightness(0) invert(1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.position-relative {
  position: relative !important;
}

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

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

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

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

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

.end-0 {
  right: 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;
}

.w-100 {
  width: 100% !important;
}

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

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

/* Hero Background */
.position-relative .position-absolute.w-100.h-100 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  z-index: 0;
}

.position-relative .position-absolute.w-100.h-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.3;
}

.position-relative .d-flex.align-items-center {
  position: relative;
  z-index: 1;
  min-height: 600px;
}

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

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

.rounded-3 {
  border-radius: 0.75rem !important;
}

.rounded-4 {
  border-radius: 1rem !important;
}

.rounded-circle {
  border-radius: 50% !important;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

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

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

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

.hover-lift {
  transition: var(--transition);
}

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

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

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

.px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !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;
}

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

.ps-lg-4,
.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-4 {
  padding-right: 1.5rem !important;
}

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

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

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

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

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

.pt-4 {
  padding-top: 1.5rem !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;
}

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

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

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

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

.me-4 {
  margin-right: 1.5rem !important;
}

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

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

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

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

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: var(--transition);
  background-color: #ffffff;
  height: 100%;
}

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

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

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

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

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

.border {
  border: 1px solid #e0e0e0 !important;
}

.border-top {
  border-top: 1px solid #e0e0e0 !important;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  height: 350px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 95, 45, 0.95) 0%, rgba(44, 95, 45, 0.4) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

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

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

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

/* ============================================
   MODAL
   ============================================ */
.modal {
  z-index: 1050;
}

.modal-backdrop {
  background-color: rgba(44, 95, 45, 0.8);
}

.modal-content {
  border: none !important;
  border-radius: 0 !important;
  background-color: #ffffff;
}

.modal-header {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 1.5rem;
  border-bottom: none;
}

.modal-header h5 {
  color: #ffffff !important;
}

.modal-body {
  padding: 2rem;
}

.modal-fullscreen .modal-body {
  overflow-y: auto;
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition) !important;
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.15) !important;
  outline: none !important;
}

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

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.15) !important;
}

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

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

.form-control.is-valid {
  border-color: var(--secondary-color) !important;
}

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

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

.accordion-item:last-child {
  margin-bottom: 0;
}

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

.accordion-button {
  background-color: var(--light-green) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.1rem !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(26%) sepia(24%) saturate(1679%) hue-rotate(82deg) brightness(93%) contrast(90%);
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 45, 0.15) !important;
  border-color: transparent !important;
}

.accordion-collapse {
  border-top: 1px solid #e0e0e0;
}

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

/* ============================================
   BADGES
   ============================================ */
.badge {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

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

/* ============================================
   BACKGROUND COLORS
   ============================================ */
.bg-white {
  background-color: #ffffff !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.text-lg-end {
  text-align: right !important;
}

.text-md-start {
  text-align: left !important;
}

.text-md-end {
  text-align: right !important;
}

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

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

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

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

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

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

.list-unstyled a {
  color: var(--text-light) !important;
  transition: var(--transition);
}

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

/* ============================================
   ICONS
   ============================================ */
.bi,
.fas,
.fa {
  display: inline-block;
  line-height: 1;
}

.bi-telephone,
.bi-telephone-fill,
.bi-envelope,
.bi-envelope-fill,
.bi-geo-alt,
.bi-geo-alt-fill,
.bi-arrow-right,
.bi-check-circle-fill,
.bi-house-door,
.bi-building,
.bi-tree,
.bi-grid-3x3,
.bi-clock-history,
.bi-map,
.bi-car-front,
.bi-train-front {
  vertical-align: middle;
}

.fa-leaf,
.fa-certificate,
.fa-home,
.fa-seedling,
.fa-recycle,
.fa-check-circle,
.fa-sun,
.fa-tree,
.fa-water,
.fa-heart,
.fa-clock,
.fa-users {
  color: var(--primary-color);
}

.fa-2x {
  font-size: 2rem;
}

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

/* ============================================
   RATIO (VIDEO EMBEDS)
   ============================================ */
.ratio {
  position: relative;
  width: 100%;
}

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

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

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  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 pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

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

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

/* ============================================
   ORDER UTILITIES
   ============================================ */
.order-1 {
  order: 1 !important;
}

.order-2 {
  order: 2 !important;
}

.order-lg-1 {
  order: 1 !important;
}

.order-lg-2 {
  order: 2 !important;
}

/* ============================================
   SMALL TEXT
   ============================================ */
.small {
  font-size: 0.875rem !important;
  color: var(--text-light) !important;
}

/* ============================================
   FADE EFFECT
   ============================================ */
.fade {
  transition: opacity 0.15s linear;
}

.fade:not(.show) {
  opacity: 0;
}

/* ============================================
   CUSTOM SECTIONS
   ============================================ */
.feature-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
}

.feature-box:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-box .fa,
.feature-box .fas,
.feature-box .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* ============================================
   CUSTOM BACKGROUNDS
   ============================================ */
.bg-pattern {
  background-color: var(--light-green);
  background-image: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M20 20.5V18H0v-2h20v-2H0v-2h20v-2H0V8h20V6H0V4h20V2H0V0h22v20h2V0h2v20h2V0h2v20h2V0h2v20h2V0h2v20h2v2H20v-1.5zM0 20h2v20H0V20zm4 0h2v20H4V20zm4 0h2v20H8V20zm4 0h2v20h-2V20zm4 0h2v20h-2V20zm4 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2zm0 4h20v2H20v-2z" fill="%232C5F2D" fill-opacity="0.05" fill-rule="evenodd"/%3E%3C/svg%3E');
}

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

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
  
  .d-lg-none {
    display: none !important;
  }
  
  .order-lg-1 {
    order: 1 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }
  
  .ps-lg-4 {
    padding-left: 1.5rem !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-4 {
    padding-right: 1.5rem !important;
  }
  
  .p-lg-6 {
    padding: 4rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .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;
  }
}

/* Mobile (max-width: 991px) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .navbar-nav {
    gap: 0 !important;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .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;
  }
  
  .h-100 {
    min-height: 500px !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .portfolio-item {
    height: 300px;
  }
  
  .p-lg-6 {
    padding: 2rem !important;
  }
  
  .me-5 {
    margin-right: 1.5rem !important;
  }
  
  .order-1 {
    order: 1 !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
}

/* Small devices (phones, max-width: 767px) */
@media (max-width: 767.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .feature-box {
    padding: 1.5rem;
  }
  
  .accordion-button {
    font-size: 1rem !important;
    padding: 1rem !important;
  }
  
  .fs-1 {
    font-size: 2rem !important;
  }
  
  .fa-3x {
    font-size: 2.5rem;
  }
  
  .rounded-circle {
    width: 50px;
    height: 50px;
  }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.loaded {
  opacity: 1;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 1000;
}

#scrollToTop:hover {
  background-color: var(--dark-green);
  transform: translateY(-5px);
}

#scrollToTop.show {
  display: flex;
  animation: fadeIn 0.3s ease-in;
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* ============================================
   GRID UTILITIES
   ============================================ */
.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

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

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

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  #scrollToTop,
  .modal {
    display: none !important;
  }
  
  body {
    background: #ffffff;
  }
  
  a {
    text-decoration: underline;
  }
}