/* Forest Heritage Architecture Studio - Custom Styles */

/* ========================================
   CSS VARIABLES & ROOT SETTINGS
   ======================================== */
:root {
  --primary-color: #2C5530;
  --secondary-color: #8B7355;
  --primary-dark: #1a3d1e;
  --primary-light: #3d6e42;
  --secondary-dark: #6d5a42;
  --secondary-light: #a08c6f;
  --text-dark: #2a2a2a;
  --text-light: #f8f9fa;
  --bg-light: #f5f3f0;
  --bg-white: #ffffff;
  --shadow: rgba(44, 85, 48, 0.15);
  --shadow-hover: rgba(44, 85, 48, 0.25);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark) !important;
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--bg-light);
}

html {
  scroll-behavior: smooth;
}

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

.display-1 { font-size: clamp(2.5rem, 8vw, 5rem) !important; }
.display-3 { font-size: clamp(2rem, 6vw, 4rem) !important; }
.display-4 { font-size: clamp(1.75rem, 5vw, 3.5rem) !important; }
.display-5 { font-size: clamp(1.5rem, 4vw, 3rem) !important; }
.display-6 { font-size: clamp(1.25rem, 3vw, 2.5rem) !important; }

.text-white, .text-white.display-1, .text-white.display-3, .text-white.display-4, .text-white.display-5 {
  color: #ffffff !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--text-dark) !important;
  line-height: 1.8 !important;
}

.fs-4 { font-size: clamp(1rem, 2vw, 1.25rem) !important; }
.fs-5 { font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important; }

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-light { font-weight: 300 !important; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}

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

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  padding: 1rem 0 !important;
  transition: var(--transition);
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  animation: slideDown 0.4s ease-out;
}

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

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

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

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

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

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #ffffff !important;
}

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

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  transition: var(--transition);
  position: relative;
  text-transform: capitalize;
}

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

.nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
}

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

.nav-link.active {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  border-radius: var(--border-radius) !important;
  transition: var(--transition) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent !important;
  font-size: 0.95rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 115, 85, 0.3) !important;
}

.btn-outline-light {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

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

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

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

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

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

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

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

.btn:active {
  transform: translateY(-1px) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.vh-100 {
  min-height: 100vh !important;
  position: relative;
}

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

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

.position-absolute.w-100.h-100 {
  object-fit: cover;
  z-index: 1;
}

.position-absolute.w-100.h-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 85, 48, 0.85) 0%, rgba(139, 115, 85, 0.75) 100%);
  z-index: 2;
}

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

.position-relative .container {
  position: relative;
  z-index: 3;
}

/* ========================================
   CARDS
   ======================================== */
.card {
  border: none !important;
  border-radius: var(--border-radius) !important;
  transition: var(--transition);
  overflow: hidden;
  background-color: var(--bg-white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-hover) !important;
}

.card-body {
  padding: 2rem !important;
}

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

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

.card-title {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  margin-bottom: 0.75rem !important;
}

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

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

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

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

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

/* ========================================
   BACKGROUNDS
   ======================================== */
.bg-white {
  background-color: var(--bg-white) !important;
}

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

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

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

/* ========================================
   PORTFOLIO & IMAGES
   ======================================== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  height: 350px;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 85, 48, 0.95) 0%, rgba(44, 85, 48, 0.4) 50%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: white;
}

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

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

.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--border-radius);
}

.rounded {
  border-radius: var(--border-radius) !important;
}

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

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

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

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

.form-control,
.form-select {
  padding: 0.75rem 1rem !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: var(--border-radius) !important;
  transition: var(--transition) !important;
  font-size: 0.95rem !important;
  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.25rem rgba(44, 85, 48, 0.15) !important;
  outline: 0 !important;
}

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

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

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

.form-control.is-valid {
  border-color: #198754 !important;
}

.invalid-feedback,
.valid-feedback {
  font-size: 0.875rem !important;
  margin-top: 0.5rem !important;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
  border-radius: var(--border-radius) !important;
  border: none !important;
  padding: 1rem 1.25rem !important;
  font-size: 0.95rem !important;
}

.alert-success {
  background-color: #d1e7dd !important;
  color: #0f5132 !important;
}

.alert-danger {
  background-color: #f8d7da !important;
  color: #842029 !important;
}

.alert-warning {
  background-color: #fff3cd !important;
  color: #664d03 !important;
}

.alert-info {
  background-color: #cff4fc !important;
  color: #055160 !important;
}

/* ========================================
   ACCORDION
   ======================================== */
.accordion {
  border-radius: var(--border-radius) !important;
  overflow: hidden;
}

.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.accordion-header {
  margin-bottom: 0 !important;
}

.accordion-button {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  font-size: 1.05rem !important;
  border: none !important;
}

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

.accordion-button.collapsed {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.accordion-button:hover {
  background-color: var(--primary-light) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 85, 48, 0.25) !important;
  border: none !important;
}

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

.accordion-collapse {
  border: none !important;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
  z-index: 1055 !important;
}

.modal-content {
  border-radius: var(--border-radius) !important;
  border: none !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
}

.modal-header {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-bottom: none !important;
  padding: 1.5rem !important;
}

.modal-title {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.modal-body {
  padding: 2rem !important;
}

.modal-footer {
  border-top: none !important;
  padding: 1.5rem !important;
}

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

/* ========================================
   FILTER BUTTONS
   ======================================== */
.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.25rem !important;
  border-radius: 50px !important;
  font-weight: 500 !important;
  transition: var(--transition) !important;
  cursor: pointer;
}

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

/* ========================================
   PROJECT ITEMS
   ======================================== */
.project-item {
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.project-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   SOCIAL LINKS
   ======================================== */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: #ffffff !important;
  border-radius: 50%;
  margin: 0 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 10px 20px var(--shadow-hover);
}

/* ========================================
   ICONS
   ======================================== */
.bi, .fas, .fab {
  vertical-align: middle;
}

.fa-2x {
  font-size: 2em;
}

.fa-lg {
  font-size: 1.25em;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: 1200px;
}

.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

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

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

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

.m-3 { margin: 1rem !important; }
.mt-0 { margin-top: 0 !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; }
.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-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

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

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

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

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }

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

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

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

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

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

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

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

.list-unstyled li {
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.small {
  font-size: 0.875rem !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@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 zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

.animate-zoom {
  animation: zoomIn 0.6s ease-out forwards;
}

/* Stagger animation delays */
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

/* Mobile First - Base styles above are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .flex-sm-row {
    flex-direction: row !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .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 !important;
  }
  
  .order-lg-2 {
    order: 2 !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Mobile specific styles */
@media (max-width: 767px) {
  .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius);
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .portfolio-item {
    height: 250px;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  .col-12 {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .order-1 {
    order: 1 !important;
  }
  
  .order-2 {
    order: 2 !important;
  }
}

/* Tablet specific */
@media (min-width: 768px) and (max-width: 991px) {
  .px-4 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .accordion-button {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
  
  .card,
  .shadow,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}