/* Forest Amber Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E7D5B;
  --secondary-color: #F4A261;
  --primary-dark: #1f5440;
  --primary-light: #3a9670;
  --secondary-dark: #e68f45;
  --secondary-light: #f7b87d;
  --text-dark: #1a1a1a;
  --text-light: #f8f9fa;
  --background-light: #fefefe;
  --background-dark: #0d1b14;
  --shadow-sm: 0 2px 8px rgba(46, 125, 91, 0.1);
  --shadow-md: 0 4px 16px rgba(46, 125, 91, 0.15);
  --shadow-lg: 0 8px 32px rgba(46, 125, 91, 0.2);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--background-light);
  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;
  letter-spacing: -0.02em;
  color: var(--text-dark) !important;
}

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

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  transition: var(--transition-base);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  z-index: 1030;
}

.navbar-dark {
  background-color: rgba(46, 125, 91, 0.95) !important;
}

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

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

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

.navbar-dark .navbar-brand {
  color: #ffffff !important;
}

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

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

.navbar-nav {
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-base);
  position: relative;
  font-size: 0.95rem;
}

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

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

.nav-link:hover,
.nav-link:focus {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
  color: var(--secondary-color) !important;
}

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

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

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

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  padding: 0.5rem;
  transition: var(--transition-base);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 162, 97, 0.5) !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");
}

/* Hero Section */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 91, 0.85) 0%, rgba(244, 162, 97, 0.7) 100%);
  z-index: 3;
}

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

.hero-content .display-2 {
  color: #ffffff !important;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem !important;
}

.hero-content .lead {
  color: #ffffff !important;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-base);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
  z-index: -1;
}

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

.btn-primary {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--secondary-color) !important;
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

.btn-outline-primary {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

.btn-light:hover,
.btn-light:focus {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
}

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

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

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

.btn-sm {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
}

.filter-btn {
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

/* Service Cards */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  transition: var(--transition-base);
  border: 1px solid rgba(46, 125, 91, 0.1);
  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);
  transform-origin: left;
  transition: var(--transition-base);
}

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

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

.service-card .bi {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: var(--transition-base);
}

.service-card:hover .bi {
  color: var(--secondary-color);
  transform: scale(1.1) rotate(5deg);
}

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

.service-card p {
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Portfolio */
.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;
  transition: var(--transition-base);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 400px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(46, 125, 91, 0.95), rgba(244, 162, 97, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
  padding: 2rem;
  text-align: center;
}

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

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

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

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

.portfolio-overlay .btn {
  margin-top: 1rem;
}

/* Cards */
.card {
  border-radius: 12px;
  transition: var(--transition-base);
  overflow: hidden;
  height: 100%;
}

.card-body {
  padding: 2rem;
}

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

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

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

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

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

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

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

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

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

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

/* Forms */
.form-control,
.form-select {
  border: 2px solid rgba(46, 125, 91, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: var(--transition-base);
  font-size: 1rem;
  color: var(--text-dark) !important;
  background-color: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 91, 0.15) !important;
  outline: none;
}

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

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

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

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

/* Borders */
.border-top {
  border-top: 1px solid rgba(46, 125, 91, 0.1) !important;
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

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

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

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

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

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

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

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

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

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

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

.p-0 {
  padding: 0 !important;
}

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

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

.ps-1 {
  padding-left: 0.25rem !important;
}

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

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

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

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

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

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

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

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

.mt-5 {
  margin-top: 3rem !important;
}

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

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

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

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !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;
}

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

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

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

.gap-4 {
  gap: 1.5rem !important;
}

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

/* Utility Classes */
.position-relative {
  position: relative !important;
}

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

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

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

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

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.text-end {
  text-align: right !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;
}

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

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

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

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

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

.list-unstyled li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.list-unstyled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

/* Background Colors */
.bg-dark {
  background-color: var(--background-dark) !important;
}

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

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

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

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

a:hover,
a:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

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

.modal-content {
  border-radius: 16px;
  border: none;
  overflow: hidden;
}

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

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

.modal-body {
  padding: 2rem;
}

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

.btn-close:hover {
  opacity: 1;
}

.fade {
  transition: opacity 0.3s linear;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

footer h3,
footer h4,
footer h5,
footer h6 {
  color: #ffffff !important;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition-base);
}

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

footer .bi {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.small {
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  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);
  }
}

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

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* Responsive Design */
@media (max-width: 1199.98px) {
  .display-2 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .p-lg-5 {
    padding: 2rem !important;
  }
  
  .ps-lg-5,
  .pe-lg-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(46, 125, 91, 0.98);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
  }
  
  .navbar-light .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(46, 125, 91, 0.1);
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .d-lg-block {
    display: block !important;
  }
  
  .sticky-lg-top {
    position: relative !important;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel,
  .hero-slide {
    height: 100vh;
  }
  
  .hero-content .display-2 {
    font-size: 2rem !important;
  }
  
  .hero-content .lead {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .portfolio-card {
    height: 300px;
  }
  
  .d-md-block {
    display: block !important;
  }
  
  .col-md-4,
  .col-md-6,
  .col-md-10,
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .modal-xl {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  .display-4 {
    font-size: 1.35rem !important;
  }
  
  .display-5 {
    font-size: 1.25rem !important;
  }
  
  .display-6 {
    font-size: 1.1rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-card {
    height: 250px;
  }
  
  .service-card .bi {
    font-size: 2rem;
  }
  
  footer {
    padding: 3rem 0 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  a {
    text-decoration: underline;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --background-light: #1a1a1a;
    --text-dark: #f8f9fa;
  }
}

/* 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);
  outline-offset: 3px;
}

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

/* Reduce motion for accessibility */
@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;
  }
}