/* Forest Gold Architecture Studio Theme - CSS */

/* ============================================
   CSS Variables & Root Settings
   ============================================ */
:root {
  --primary-color: #2C5530;
  --secondary-color: #D4AF37;
  --primary-dark: #1a3320;
  --primary-light: #3d7042;
  --secondary-dark: #b8941f;
  --secondary-light: #e6c75f;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow: 0 0.5rem 1rem rgba(44, 85, 48, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(44, 85, 48, 0.175);
  --transition: all 0.3s ease;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   Global Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--white);
}

/* ============================================
   Typography
   ============================================ */
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  line-height: 1.2 !important;
}

.text-white.display-2,
.text-white.display-3,
.text-white.display-4 {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

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

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

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

.h3, h3 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.h5, h5 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.h6, h6 {
  color: var(--primary-dark) !important;
  font-weight: 500;
}

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

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 1000;
}

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

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

.navbar.sticky-top {
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-brand {
  font-size: 1.75rem;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  transition: var(--transition);
  letter-spacing: 1px;
}

.navbar-dark .navbar-brand {
  color: var(--secondary-color) !important;
}

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

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

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

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

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

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

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

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

.nav-link:hover::before {
  width: 70%;
}

.nav-link.active {
  color: var(--white) !important;
  background-color: var(--primary-color) !important;
  font-weight: 600 !important;
}

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

.navbar-dark .nav-link:hover {
  color: var(--secondary-color) !important;
  background-color: rgba(212, 175, 55, 0.15) !important;
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  font-weight: 600 !important;
  border-radius: 8px;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  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.6s, height 0.6s;
  z-index: -1;
}

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

.btn-lg {
  padding: 0.75rem 2rem !important;
  font-size: 1.125rem !important;
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3) !important;
}

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

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(212, 175, 55, 0.3) !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================
   Portfolio Section
   ============================================ */
.filter-btn {
  background-color: transparent !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.5rem;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 85, 48, 0.3);
}

.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;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease;
}

.portfolio-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-item.medium {
  grid-column: span 1;
  grid-row: span 2;
}

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

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

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95) 0%, rgba(44, 85, 48, 0.7) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

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

.portfolio-content {
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-tag {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-dark) !important;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.card.shadow,
.card.shadow-lg {
  box-shadow: var(--shadow);
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1.5rem 4rem rgba(44, 85, 48, 0.2) !important;
}

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

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

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

.card-body .text-muted {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Badges & Progress
   ============================================ */
.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  background-color: var(--secondary-color) !important;
  color: var(--primary-dark) !important;
}

.progress {
  height: 10px;
  border-radius: 10px;
  background-color: rgba(44, 85, 48, 0.1);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--secondary-color) !important;
  transition: width 1.5s ease;
  border-radius: 10px;
}

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

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

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}

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

/* ============================================
   Bootstrap Icons
   ============================================ */
.bi {
  display: inline-block;
  vertical-align: middle;
  transition: var(--transition);
}

.bi-house-door,
.bi-building,
.bi-rulers,
.bi-tree,
.bi-bank,
.bi-clipboard-check,
.bi-chat-dots,
.bi-pencil-square,
.bi-people,
.bi-chat-quote-fill,
.bi-exclamation-triangle-fill,
.bi-people-fill,
.bi-hammer,
.bi-check-circle-fill,
.bi-telephone-fill,
.bi-geo-alt-fill,
.bi-envelope-fill {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

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

.d-inline-block.rounded-circle {
  width: 80px;
  height: 80px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background-color: rgba(212, 175, 55, 0.15);
  border: 3px solid var(--secondary-color);
  transition: var(--transition);
}

.d-inline-block.rounded-circle:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1) rotate(10deg);
}

.d-inline-block.rounded-circle .bi {
  font-size: 2rem;
  color: var(--secondary-color);
}

.d-inline-block.rounded-circle:hover .bi {
  color: var(--white);
}

/* ============================================
   Utility Classes
   ============================================ */
.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(44, 85, 48, 0.075) !important;
}

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

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

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

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

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

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

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

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

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

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

.img-fluid {
  max-width: 100%;
  height: auto;
}

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

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

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

/* ============================================
   Spacing Utilities
   ============================================ */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !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; }

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

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

.ps-lg-5 { padding-left: 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; }

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

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

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

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

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

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

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

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

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

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

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

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

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

.justify-content-between {
  justify-content: space-between !important;
}

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

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

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

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

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

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

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

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

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

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

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

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

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

/* ============================================
   Footer
   ============================================ */
footer {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  margin-top: 5rem;
}

footer a {
  color: var(--white) !important;
  text-decoration: none;
  transition: var(--transition);
}

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

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

footer h5,
footer .h5 {
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* Mobile (default) */
.col-6,
.col-12,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10 {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-6 {
  width: 50%;
}

/* Tablet - 768px and up */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-5 { width: 41.666667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333333%; }

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

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

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

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

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

/* Desktop - 992px and up */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .col-lg-2 { width: 16.666667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.333333%; }
  .col-lg-5 { width: 41.666667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.333333%; }
  .col-lg-8 { width: 66.666667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.333333%; }

  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }

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

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

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

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

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

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Desktop - 1400px and up */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Specific Styles */
@media (max-width: 767px) {
  .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;
  }

  .display-6 {
    font-size: 1.25rem !important;
  }

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

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

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

  .h-100 {
    min-height: 400px;
  }

  .navbar-collapse {
    background-color: var(--white);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

  .portfolio-item.large,
  .portfolio-item.medium {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card-img-top {
    height: 200px;
  }

  .d-inline-block.rounded-circle {
    width: 60px;
    height: 60px;
  }

  .d-inline-block.rounded-circle .bi {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}

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

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #1a3320;
    --secondary-color: #b8941f;
  }
}

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

/* ============================================
   Loading States
   ============================================ */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(44, 85, 48, 0.1);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--white);
}