/* Architecture Studio - Forest Green & Amber Theme */
/* Color Variables & Base Styles */
:root {
  --primary-color: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #4CAF50;
  --secondary-color: #FFC107;
  --secondary-dark: #FFA000;
  --secondary-light: #FFD54F;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --shadow: rgba(46, 125, 50, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

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

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

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

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

/* Navbar Styles */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  box-shadow: 0 2px 20px var(--shadow);
}

.navbar-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
}

.navbar-light {
  background: var(--bg-white) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

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

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

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

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

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

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

.navbar-light .navbar-toggler {
  border-color: var(--primary-color) !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(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

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

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

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

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

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Button Styles */
.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

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

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

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(46,125,50,0.3);
  border: none !important;
}

.btn-primary:hover,
.btn-success:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
}

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

.btn-outline-primary:hover,
.btn-outline-success:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(255,193,7,0.3);
  border: none !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  color: var(--text-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
}

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

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

.btn:active,
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.2);
}

/* Hero Section */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }

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

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

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.min-vh-100 { min-height: 100vh; }

.parallax-container {
  background: linear-gradient(135deg, rgba(46,125,50,0.85) 0%, rgba(27,94,32,0.9) 100%),
              url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"%3E%3Cdefs%3E%3Cpattern id="leaf" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"%3E%3Cpath d="M50,10 Q30,30 50,50 Q70,30 50,10" fill="rgba(255,255,255,0.03)"/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill="url(%23leaf)" width="1200" height="800"/%3E%3C/svg%3E');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.parallax-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,193,7,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(76,175,80,0.1) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

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

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

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

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

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

@media (max-width: 991.98px) {
  .text-lg-start,
  .text-lg-end {
    text-align: center !important;
  }
}

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

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

@media (max-width: 767.98px) {
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
}

/* Container & Layout */
.container,
.container-fluid {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-0 { margin: 0; }
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }

[class*="col-"] {
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; }
.col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }

@media (max-width: 991.98px) {
  [class*="col-lg-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.order-1 { order: 1; }
.order-2 { order: 2; }
.order-lg-1 { order: 1; }
.order-lg-2 { order: 2; }

@media (max-width: 991.98px) {
  .order-lg-1,
  .order-lg-2 {
    order: 0;
  }
}

/* Flexbox Utilities */
.d-flex {
  display: flex !important;
}

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

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

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

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

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

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

/* Spacing Utilities */
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

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

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

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

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

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

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

@media (max-width: 991.98px) {
  .ps-lg-5 { padding-left: 1rem !important; }
}

@media (max-width: 767.98px) {
  .p-md-5 { padding: 1.5rem !important; }
}

.m-0 { margin: 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; }

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

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

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

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

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

@media (max-width: 991.98px) {
  .mb-lg-0,
  .mt-lg-0 {
    margin-bottom: 1.5rem !important;
    margin-top: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .mb-md-0 { margin-bottom: 1rem !important; }
}

/* Card Styles */
.card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  border: none;
  height: 100%;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46,125,50,0.2) !important;
}

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

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

.card-body {
  padding: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(46,125,50,0.15);
  transform: translateY(-5px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.portfolio-item,
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46,125,50,0.95), rgba(255,193,7,0.85));
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-img,
.portfolio-card:hover .portfolio-img {
  transform: scale(1.15);
}

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

.portfolio-overlay h3,
.portfolio-overlay h4,
.portfolio-overlay h5,
.portfolio-overlay h6 {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
}

.portfolio-overlay p {
  color: var(--text-light);
}

.filter-buttons,
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(46,125,50,0.3);
}

/* Badge */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--secondary-color);
  color: var(--text-dark);
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* Shadow Utilities */
.shadow {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

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

/* Opacity Utilities */
.opacity-25 { opacity: 0.25 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-90 { opacity: 0.9 !important; }

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  padding: 0.875rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  transition: var(--transition);
  width: 100%;
  font-size: 1rem;
  background: var(--bg-white);
  color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.1);
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Accordion Styles */
.accordion {
  border: none;
}

.accordion-item {
  border: 2px solid #e0e0e0;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-white);
}

.accordion-header {
  margin: 0;
}

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

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-light) !important;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border: none;
}

.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-collapse {
  border: none;
}

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

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

.show {
  display: block !important;
}

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

.bi-send::before { content: "\f649"; }
.bi-geo-alt-fill::before { content: "\f32e"; }
.bi-geo-alt::before { content: "\f32d"; }
.bi-telephone-fill::before { content: "\f659"; }
.bi-telephone::before { content: "\f657"; }
.bi-envelope-fill::before { content: "\f2b3"; }
.bi-envelope::before { content: "\f2b2"; }
.bi-pin-map-fill::before { content: "\f589"; }
.bi-building::before { content: "\f1d8"; }
.bi-house-door::before { content: "\f41d"; }
.bi-chevron-down::before { content: "\f229"; }
.bi-check2::before { content: "\f222"; }
.bi-bank::before { content: "\f1cc"; }
.bi-leaf::before { content: "\f4b3"; }
.bi-map::before { content: "\f52e"; }
.bi-palette::before { content: "\f580"; }
.bi-facebook::before { content: "\f2d9"; }
.bi-instagram::before { content: "\f425"; }
.bi-linkedin::before { content: "\f4b9"; }
.bi-twitter::before { content: "\f67c"; }

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

/* List & Text Decoration */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

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

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

/* Border Utilities */
.border-0 { border: none !important; }
.border-top { border-top: 1px solid #dee2e6; }

/* Font Weight */
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

.h2, .h3, .h4, .h5, .h6 {
  font-weight: 700;
  color: var(--text-dark) !important;
}

.h2 { font-size: 2rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }

/* Small Text */
.small,
small {
  font-size: 0.875rem;
  color: #6c757d;
}

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

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

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46,125,50,0.2);
}

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

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

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(46,125,50,0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive Typography */
@media (max-width: 1199.98px) {
  .display-2 { font-size: 3rem; }
  .display-4 { font-size: 2.5rem; }
  .display-5 { font-size: 2rem; }
  .display-6 { font-size: 1.75rem; }
}

@media (max-width: 991.98px) {
  .display-2 { font-size: 2.5rem; }
  .display-4 { font-size: 2rem; }
  .display-5 { font-size: 1.75rem; }
  .display-6 { font-size: 1.5rem; }
  
  .navbar-collapse {
    background: rgba(46,125,50,0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .navbar-light .navbar-collapse {
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .display-2 { font-size: 2rem; }
  .display-4 { font-size: 1.75rem; }
  .display-5 { font-size: 1.5rem; }
  .display-6 { font-size: 1.25rem; }
  
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-2 { font-size: 1.75rem; }
  .display-4 { font-size: 1.5rem; }
  
  .container,
  .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .filter-buttons {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  .container {
    max-width: 100%;
  }
}

/* Accessibility */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(46,125,50,0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn,
  .card,
  .form-control {
    border: 2px solid currentColor;
  }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: var(--text-light);
}

::-moz-selection {
  background: var(--primary-color);
  color: var(--text-light);
}