/* Architectural Studio Theme - Charcoal Amber */

/* ===========================
   Root Variables & Resets
   =========================== */
:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --primary-dark: #1a252f;
  --secondary-dark: #d35400;
  --light-gray: #ecf0f1;
  --dark-gray: #34495e;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 6px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 10px 25px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 20px 40px rgba(44, 62, 80, 0.25);
}

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

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

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

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

.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: var(--white) !important;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  line-height: 1.3;
}

.text-white h1, .text-white h2, .text-white h3, 
.text-white h4, .text-white h5, .text-white h6 {
  color: var(--white) !important;
}

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

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

.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fst-italic { font-style: italic !important; }

.text-muted {
  color: #7f8c8d !important;
}

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

/* ===========================
   Navbar
   =========================== */
.navbar {
  background-color: var(--primary-color) !important;
  padding: 1rem 0 !important;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 1030;
}

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

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 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, 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;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

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

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

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

/* ===========================
   Buttons
   =========================== */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 0.375rem !important;
  transition: var(--transition);
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem !important;
}

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

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-dark) !important;
  border-color: var(--secondary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.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);
  box-shadow: var(--shadow-lg);
}

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

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

.btn:active {
  transform: translateY(0) !important;
}

/* ===========================
   Hero Section
   =========================== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 100px,
      rgba(230, 126, 34, 0.03) 100px,
      rgba(230, 126, 34, 0.03) 200px
    );
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(100px) translateY(100px);
  }
}

.position-relative.overflow-hidden .position-absolute {
  top: 0;
  left: 0;
  opacity: 0.1;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23E67E22" stroke-width="2"/><line x1="10" y1="50" x2="90" y2="50" stroke="%23E67E22" stroke-width="1"/><line x1="50" y1="10" x2="50" y2="90" stroke="%23E67E22" stroke-width="1"/></svg>');
  background-repeat: repeat;
  background-size: 100px 100px;
  z-index: 1;
}

.position-relative.overflow-hidden .d-flex {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

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

/* ===========================
   Cards & Portfolio Items
   =========================== */
.card {
  border: none !important;
  border-radius: 0.5rem !important;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--white) !important;
}

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

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

.card-img-top {
  transition: var(--transition);
  aspect-ratio: 16/10;
  object-fit: cover;
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(230, 126, 34, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

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

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* ===========================
   Badges
   =========================== */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em;
  border-radius: 0.25rem !important;
  background-color: var(--secondary-color) !important;
  color: var(--white) !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 {
  border: 2px solid #dfe6e9 !important;
  border-radius: 0.375rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25) !important;
  background-color: var(--white) !important;
}

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

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

.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(230, 126, 34, 0.25) !important;
}

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

/* ===========================
   Alerts
   =========================== */
.alert {
  border-radius: 0.5rem !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 500 !important;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-success {
  background-color: #d4edda !important;
  color: #155724 !important;
}

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

/* ===========================
   Modal
   =========================== */
.modal-content {
  border: none !important;
  border-radius: 0.75rem !important;
  background-color: var(--white) !important;
}

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

.modal-title {
  color: var(--white) !important;
  font-weight: 700 !important;
}

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

.btn-close,
.btn-close-white {
  opacity: 1 !important;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.btn-close:hover,
.btn-close-white:hover {
  transform: rotate(90deg);
  opacity: 0.75 !important;
}

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

.bi-lightbulb,
.bi-tree,
.bi-people,
.bi-rulers,
.bi-bounding-box-circles,
.bi-clipboard-check,
.bi-box,
.bi-camera,
.bi-house,
.bi-play-circle,
.bi-grid-3x3,
.bi-shield-check,
.bi-geo-alt,
.bi-telephone,
.bi-envelope,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-pin-map-fill,
.bi-arrow-right,
.bi-check-circle-fill {
  color: var(--secondary-color) !important;
  transition: var(--transition);
}

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

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

.bi:hover {
  transform: scale(1.1);
}

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

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

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

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

/* ===========================
   Shadows
   =========================== */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

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

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

/* ===========================
   Utility Classes
   =========================== */
.text-decoration-none {
  text-decoration: none !important;
}

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

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

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

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

.z-1 { z-index: 1 !important; }
.z-3 { z-index: 3 !important; }

/* ===========================
   Navigation Pills/Tabs
   =========================== */
.nav {
  gap: 0.5rem;
}

.nav .nav-link {
  color: var(--primary-color) !important;
  background-color: transparent !important;
  border: 2px solid transparent !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 0.375rem !important;
  transition: var(--transition);
  font-weight: 500 !important;
}

.nav .nav-link:hover,
.nav .nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

/* ===========================
   Filter Buttons
   =========================== */
.filter-btn {
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background-color: transparent !important;
  border-radius: 0.375rem !important;
  transition: var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.875rem !important;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===========================
   Section Styling
   =========================== */
section {
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.p-0 { padding: 0 !important; }
.p-3 { padding: 2rem !important; }
.p-4 { padding: 2.5rem !important; }
.p-5 { padding: 3rem !important; }

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

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

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

.m-4 { margin: 2.5rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 2.5rem !important; }
.ms-auto { margin-left: auto !important; }

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !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: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !important; }

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

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

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

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

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

.text-center { text-align: center !important; }
.text-md-start { text-align: left !important; }
.text-md-end { text-align: right !important; }
.text-lg-end { text-align: right !important; }

/* ===========================
   Position Utilities
   =========================== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-sticky { position: sticky !important; }

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

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

/* ===========================
   Width & Height
   =========================== */
.w-100 { width: 100% !important; }
.w-75 { width: 75% !important; }
.w-50 { width: 50% !important; }
.h-100 { height: 100% !important; }
.h-75 { height: 75% !important; }

/* ===========================
   Container
   =========================== */
.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .container,
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

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

/* ===========================
   Grid System
   =========================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.g-0 { margin-left: 0; margin-right: 0; }
.g-0 > * { padding-left: 0; padding-right: 0; }

.g-3 { margin-left: -1rem; margin-right: -1rem; }
.g-3 > * { padding-left: 1rem; padding-right: 1rem; margin-bottom: 2rem; }

.g-4 { margin-left: -1.5rem; margin-right: -1.5rem; }
.g-4 > * { padding-left: 1.5rem; padding-right: 1.5rem; margin-bottom: 3rem; }

[class*='col-'] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
  
  .ps-lg-4 { padding-left: 2.5rem !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  
  .text-lg-end { text-align: right !important; }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.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
   =========================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--primary-dark);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
  
  .display-1 { font-size: 3rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  .display-6 { font-size: 1.5rem !important; }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 0.95rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .position-relative.overflow-hidden {
    min-height: 80vh;
  }
}

@media (max-width: 767.98px) {
  .display-1 { 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; }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .modal-body {
    padding: 1.5rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 { font-size: 2rem !important; }
  .display-3 { font-size: 1.75rem !important; }
  .display-4 { font-size: 1.5rem !important; }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .position-relative.overflow-hidden {
    min-height: 70vh;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
  .navbar,
  .btn,
  .modal,
  .alert {
    display: none !important;
  }
  
  body {
    color: #000 !important;
    background: #fff !important;
  }
}

/* ===========================
   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) !important;
  outline-offset: 2px !important;
}

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

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

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

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

/* ===========================
   Loading Animation
   =========================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 0.8s linear infinite;
}

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

/* ===========================
   Custom Utilities
   =========================== */
.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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