/* Jade Forest Ember - Architectural Studio Theme CSS */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #1B5E20;
  --primary-dark: #0d3310;
  --primary-light: #2e7d32;
  --secondary-color: #FF6F00;
  --secondary-dark: #e65100;
  --secondary-light: #ff8f00;
  --jade-forest: #1B5E20;
  --ember-glow: #FF6F00;
  --text-dark: #212529;
  --text-light: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --transition-speed: 0.3s;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ==================== BOOTSTRAP OVERRIDES ==================== */
.btn {
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(27, 94, 32, 0.3) !important;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 111, 0, 0.3) !important;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--text-light) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--text-light) !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.3) !important;
}

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

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
}

.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:focus {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

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

.btn-light:hover,
.btn-light:focus {
  background-color: var(--gray-200) !important;
  border-color: var(--gray-200) !important;
  color: var(--primary-dark) !important;
}

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

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

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

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

.border-primary {
  border-color: var(--primary-color) !important;
}

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

/* ==================== NAVBAR STYLES ==================== */
.navbar {
  background-color: rgba(27, 94, 32, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: rgba(27, 94, 32, 0.98) !important;
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

.navbar-brand .bi {
  color: var(--secondary-color) !important;
  font-size: 1.8rem;
  transition: all var(--transition-speed) ease;
}

.navbar-brand:hover .bi {
  transform: rotate(15deg);
}

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 111, 0, 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, 0.9%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-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

.nav-link:hover,
.nav-link:focus {
  color: var(--text-light) !important;
  background-color: rgba(255, 111, 0, 0.2) !important;
}

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

.nav-link.active {
  color: var(--text-light) !important;
  background-color: rgba(255, 111, 0, 0.3) !important;
  font-weight: 600;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 111, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 111, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  animation: parallaxFloat 20s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.wrench-icon-overlay {
  position: absolute;
  font-size: 15rem;
  color: rgba(255, 111, 0, 0.08);
  right: -5%;
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  z-index: 1;
  animation: iconFloat 15s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(-50%) rotate(-15deg); }
  50% { transform: translateY(-55%) rotate(-10deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

.hero-content .display-2 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-light) !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .lead {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-content .d-flex {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--text-light) !important;
  font-size: 2rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.scroll-indicator:hover {
  color: var(--secondary-color) !important;
  transform: translateX(-50%) scale(1.2);
}

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

/* ==================== SECTION STYLES ==================== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

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

.min-vh-75 {
  min-height: 75vh !important;
}

.display-2,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
  color: var(--primary-color) !important;
}

.display-2 { font-size: calc(1.725rem + 5.7vw); }
.display-4 { font-size: calc(1.475rem + 2.7vw); }
.display-5 { font-size: calc(1.425rem + 2.1vw); }
.display-6 { font-size: calc(1.375rem + 1.5vw); }

/* ==================== SERVICE CARDS ==================== */
.service-card {
  background: var(--text-light);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid var(--gray-200);
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(27, 94, 32, 0.15) !important;
  border-color: var(--primary-color);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--text-light) !important;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  transform: rotate(10deg) scale(1.1);
}

.service-card h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-600) !important;
  line-height: 1.8;
}

/* ==================== GALLERY STYLES ==================== */
.gallery-card {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
  height: 300px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(27, 94, 32, 0.9) 0%, rgba(27, 94, 32, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--text-light) !important;
}

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

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

.gallery-overlay h5,
.gallery-overlay p {
  color: var(--text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay h5,
.gallery-card:hover .gallery-overlay p {
  transform: translateY(0);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease;
}

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

/* ==================== TIMELINE STYLES ==================== */
.timeline-container {
  position: relative;
  padding-left: 3rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: var(--secondary-color);
  border: 4px solid var(--text-light);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--primary-color);
  z-index: 1;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: calc(-3rem + 6px);
  top: 16px;
  width: 4px;
  height: calc(100% - 16px);
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem;
}

/* ==================== TEAM MEMBER CARDS ==================== */
.team-member {
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.team-photo-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(27, 94, 32, 0.3);
  transition: all var(--transition-speed) ease;
  position: relative;
}

.team-photo-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 111, 0, 0.3), transparent);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.team-member:hover .team-photo-wrapper {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 111, 0, 0.4);
}

.team-member:hover .team-photo-wrapper::after {
  opacity: 1;
}

.team-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--gray-600) !important;
}

.team-member .badge {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}

/* ==================== FOUNDER STORY ==================== */
.founder-story {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.05), rgba(255, 111, 0, 0.05));
  border-radius: 1rem;
  padding: 2rem;
  border-left: 5px solid var(--secondary-color);
}

.founder-story p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark) !important;
  font-style: italic;
}

/* ==================== CARDS ==================== */
.card {
  border: none;
  border-radius: 1rem;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

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

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  font-weight: 700;
  border-bottom: 3px solid var(--secondary-color) !important;
  padding: 1rem 1.5rem;
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--gray-600) !important;
  line-height: 1.8;
}

/* ==================== LIST GROUP ==================== */
.list-group-item {
  border-color: var(--gray-200) !important;
  transition: all var(--transition-speed) ease;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
  background-color: rgba(27, 94, 32, 0.05) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.list-group-item-action.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
  border: 1px solid var(--gray-200) !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background-color: var(--gray-100) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-speed) ease;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(23%) sepia(66%) saturate(1627%) hue-rotate(111deg) brightness(91%) contrast(97%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

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

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

.form-control,
.form-select {
  border: 2px solid var(--gray-300) !important;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  background-color: var(--text-light) !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(27, 94, 32, 0.15) !important;
  background-color: var(--text-light) !important;
  color: var(--text-dark) !important;
}

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

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15) !important;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 500;
  display: block;
  margin-top: 0.25rem;
}

.form-check-input {
  border: 2px solid var(--gray-300) !important;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.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(27, 94, 32, 0.15) !important;
}

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

/* ==================== ALERTS ==================== */
.alert {
  border-radius: 0.5rem;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

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

.alert-warning {
  background-color: rgba(255, 111, 0, 0.1) !important;
  color: var(--secondary-dark) !important;
  border-left: 4px solid var(--secondary-color) !important;
}

.alert .bi {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

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

/* ==================== MODAL STYLES ==================== */
.modal-content {
  border-radius: 1rem;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-light) !important;
  padding: 1.5rem 2rem;
  border-bottom: none;
}

.modal-title {
  color: var(--text-light) !important;
  font-weight: 700;
}

.modal-body {
  padding: 2rem;
  background-color: var(--text-light);
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-100);
}

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

.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
}

/* ==================== CAROUSEL ==================== */
.carousel-item img {
  border-radius: 0.5rem;
  max-height: 70vh;
  object-fit: cover;
}

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

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

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-btn {
  background-color: var(--gray-100) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--gray-300) !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn:focus {
  background-color: var(--primary-light) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}

/* ==================== SHADOWS ==================== */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

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

/* ==================== BORDERS ==================== */
.border {
  border: 1px solid var(--gray-200) !important;
}

.border-top {
  border-top: 1px solid var(--gray-200) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--gray-200) !important;
}

.border-light {
  border-color: var(--gray-200) !important;
}

/* ==================== UTILITY CLASSES ==================== */
.text-muted {
  color: var(--gray-600) !important;
}

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

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

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

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

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

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

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

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

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

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

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

.fw-semibold {
  font-weight: 600 !important;
}

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

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

/* ==================== STICKY TOP ==================== */
.sticky-top {
  position: sticky;
  top: 100px;
  z-index: 1020;
}

/* ==================== ICONS ==================== */
.bi {
  vertical-align: middle;
  transition: all var(--transition-speed) ease;
}

.bi-check-circle-fill {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

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

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

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

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

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(27, 94, 32, 0.98);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
  }
  
  .hero-section {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .wrench-icon-overlay {
    font-size: 8rem;
    right: -10%;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
  
  .display-6 {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .timeline-container {
    padding-left: 2rem;
  }
  
  .timeline-item::before {
    left: -2rem;
  }
  
  .timeline-item::after {
    left: calc(-2rem + 6px);
  }
  
  .team-photo-wrapper {
    width: 150px;
    height: 150px;
  }
  
  .sticky-top {
    position: relative;
    top: auto;
  }
}

@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;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1.1rem !important;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon .bi {
    font-size: 1.75rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .gallery-card {
    height: 250px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-brand .bi {
    font-size: 1.5rem;
  }
  
  .display-2 {
    font-size: 2rem;
  }
  
  .wrench-icon-overlay {
    font-size: 5rem;
    right: -20%;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .modal-header,
  .modal-footer {
    padding: 1rem 1.5rem;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  .modal,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
  
  body {
    color: #000 !important;
  }
  
  .text-white,
  .text-light {
    color: #000 !important;
  }
}

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

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 3px !important;
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {
  /* Optional: Add dark mode styles if needed */
}

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