/* ============================================
   Architecture Studio - Forest Green & Amber Theme
   Primary: #2C5530 | Secondary: #F4A261
   ============================================ */

/* ============================================
   ROOT VARIABLES & IMPORTS
   ============================================ */
:root {
  --primary-color: #2C5530;
  --secondary-color: #F4A261;
  --dark-green: #1a3320;
  --light-green: #3d6b42;
  --light-amber: #f7b77f;
  --dark-amber: #e89040;
  --text-dark: #212529;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --shadow: rgba(44, 85, 48, 0.15);
  --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

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

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark) !important;
  background-color: #ffffff !important;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color) !important;
}

.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.text-white .display-1,
.text-white .display-2,
.text-white .display-3,
.text-white .display-4,
.text-white .display-5,
.text-white .display-6 {
  color: #ffffff !important;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 6px 30px rgba(44, 85, 48, 0.25);
}

.navbar-dark .navbar-brand {
  color: #ffffff !important;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--transition);
  text-transform: uppercase;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.3) !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, 1%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;
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(244, 162, 97, 0.2) !important;
  transform: translateY(-2px);
}

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

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

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

@keyframes patternMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1,
.hero-section .display-2 {
  font-weight: 800;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.3rem;
  opacity: 0.95;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-section .btn {
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-section .img-fluid {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeInRight 1s ease-out 0.5s backwards;
  transition: var(--transition);
}

.hero-section .img-fluid:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: 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: 1rem 2.5rem !important;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem;
}

/* Primary Button (Amber) */
.btn-primary,
.btn[style*="background"] {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-amber) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
  border: 2px solid var(--secondary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--dark-amber) 0%, var(--secondary-color) 100%) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244, 162, 97, 0.5) !important;
  border-color: var(--dark-amber) !important;
}

/* Outline Light Button */
.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

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

/* Outline Dark Button */
.btn-outline-dark {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: transparent !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow) !important;
}

/* Dark Button */
.btn-dark {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-dark:hover,
.btn-dark:focus {
  background: var(--dark-green) !important;
  color: #ffffff !important;
  border-color: var(--dark-green) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow) !important;
}

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

.btn-light:hover,
.btn-light:focus {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--bg-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary Button */
.btn-secondary,
.btn-outline-secondary {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--secondary-color) !important;
}

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

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 100px 0;
  position: relative;
}

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

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

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

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

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

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

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

/* ============================================
   CARDS
   ============================================ */
.card {
  border-radius: 16px;
  transition: var(--transition);
  border: none;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(44, 85, 48, 0.15) !important;
}

.card-body {
  padding: 2rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.7;
}

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

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

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

/* ============================================
   SHADOWS
   ============================================ */
.shadow {
  box-shadow: 0 10px 30px var(--shadow) !important;
}

.shadow-sm {
  box-shadow: 0 4px 15px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px var(--shadow) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 1.2rem !important;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

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

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

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.filter-btn {
  background: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.6rem 1.8rem !important;
  margin: 0.3rem;
  border-radius: 30px;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow) !important;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 10px 30px var(--shadow);
}

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

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

.portfolio-item .position-absolute {
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .position-absolute {
  opacity: 1;
}

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

.form-control,
.form-select {
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  transition: var(--transition);
  font-size: 1rem;
}

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

.form-check-input {
  width: 1.3em;
  height: 1.3em;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

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

.form-check-label {
  margin-left: 0.5rem;
  cursor: pointer;
}

.text-danger {
  color: #dc3545 !important;
  font-weight: 600;
}

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

/* ============================================
   CONTACT INFO CARD
   ============================================ */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

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

.card.border-0 h5,
.card.border-0 h6,
.card.border-0 .h5,
.card.border-0 .h6 {
  color: #ffffff !important;
}

.card.border-0 a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

.card.border-0 a:hover {
  color: var(--light-amber) !important;
  transform: translateX(5px);
  display: inline-block;
}

.bi {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* ============================================
   STATISTICS/NUMBERS SECTION
   ============================================ */
.text-center .display-4 {
  color: var(--secondary-color) !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

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

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

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

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

/* ============================================
   ICONS
   ============================================ */
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-check-circle-fill,
.bi-check,
.bi-building,
.bi-people,
.bi-shop,
.bi-people-fill,
.bi-award-fill,
.bi-calendar-check-fill,
.bi-quote,
.bi-chat-dots,
.bi-telephone,
.bi-envelope,
.bi-arrow-right,
.bi-linkedin,
.bi-instagram,
.bi-twitter,
.bi-facebook {
  color: var(--secondary-color) !important;
}

.text-white .bi,
.bg-dark .bi,
.card.border-0 .bi {
  color: var(--secondary-color) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-color) 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 4rem 0 2rem;
}

footer h5,
footer h6,
footer .h5,
footer .h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
  display: inline-block;
}

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

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

footer .border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  margin-top: 3rem;
  padding-top: 2rem;
}

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

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

/* Social Media Icons */
footer .bi-linkedin,
footer .bi-instagram,
footer .bi-twitter,
footer .bi-facebook {
  font-size: 1.5rem;
  transition: var(--transition);
}

footer a:hover .bi-linkedin,
footer a:hover .bi-instagram,
footer a:hover .bi-twitter,
footer a:hover .bi-facebook {
  transform: translateY(-5px) scale(1.2);
}

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

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

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-decoration-none {
  text-decoration: none !important;
}

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

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

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

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

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

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

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

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

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

.gap-2 {
  gap: 0.5rem !important;
}

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

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

.gap-5 {
  gap: 3rem !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;
}

/* ============================================
   POSITION UTILITIES
   ============================================ */
.position-relative {
  position: relative !important;
}

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

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

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

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

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

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

.end-0 {
  right: 0 !important;
}

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

/* ============================================
   BORDER UTILITIES
   ============================================ */
.border {
  border: 1px solid #dee2e6 !important;
}

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

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

.border-start {
  border-left: 1px solid #dee2e6 !important;
}

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

/* ============================================
   ABOUT SECTION WITH IMAGE
   ============================================ */
.flex-row-reverse {
  flex-direction: row-reverse !important;
}

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

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

.mt-auto {
  margin-top: auto !important;
}

/* ============================================
   TEAM/TESTIMONIAL CARDS
   ============================================ */
.small {
  font-size: 0.875rem;
}

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

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

/* ============================================
   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-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

/* Mobile First - Extra Small Devices */
@media (max-width: 575.98px) {
  .display-1 { font-size: 2.5rem; }
  .display-2 { font-size: 2.2rem; }
  .display-3 { font-size: 2rem; }
  .display-4 { font-size: 1.8rem; }
  .display-5 { font-size: 1.6rem; }
  .display-6 { font-size: 1.4rem; }
  
  .hero-section {
    min-height: auto;
    padding: 80px 0 60px;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .btn-lg {
    padding: 0.8rem 1.8rem !important;
    font-size: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0;
  }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.7rem; }
  .display-3 { font-size: 2.4rem; }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    padding: 100px 0 80px;
  }
  
  section {
    padding: 80px 0;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-10 { flex: 0 0 auto; 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; }
  
  .text-lg-end { text-align: right !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  .px-lg-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  
  .mt-lg-0 { margin-top: 0 !important; }
  
  .d-md-block { display: block !important; }
  
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* XXL Devices */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ============================================
   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 Styles for Keyboard Navigation */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

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