/* Titan Red & Steel Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #37474F;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
  --gray-dark: #2c2c2c;
  --gray-light: #e0e0e0;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Navbar Styling */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-dark) 100%) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-md);
  position: sticky !important;
  top: 0;
  z-index: 1050;
}

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

.navbar-brand {
  font-size: 1.75rem !important;
  color: var(--white) !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  text-transform: uppercase;
}

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

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

.navbar-toggler {
  border-color: var(--white) !important;
  padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 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 {
  align-items: center;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: all var(--transition-speed) ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

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

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

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

.vh-100 {
  height: 100vh;
  min-height: 600px;
}

.min-vh-100 {
  min-height: 100vh;
}

.overflow-hidden {
  overflow: hidden;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

.position-sticky {
  position: sticky;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.h-50 {
  height: 50%;
}

/* Hero Background Animation */
.position-relative.vh-100 {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-dark) 50%, var(--black) 100%);
  position: relative;
  overflow: hidden;
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h100v100H0z" fill="none"/%3E%3Cpath d="M0 0l100 100M100 0L0 100" stroke="%23D32F2F" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  animation: bgMove 20s linear infinite;
  opacity: 0.3;
}

@keyframes bgMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

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

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

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

.flex-grow-1 {
  flex-grow: 1 !important;
}

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

.align-items-start {
  align-items: 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-white {
  color: var(--white) !important;
}

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

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

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

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

/* Buttons */
.btn {
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none !important;
  border-radius: 0.5rem !important;
  transition: all var(--transition-speed) ease !important;
  cursor: pointer;
  font-size: 0.95rem !important;
  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:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

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

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

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%) !important;
  color: var(--white) !important;
  border-color: #B71C1C !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #263238 100%) !important;
  color: var(--white) !important;
  border: 2px solid var(--secondary-color) !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #263238 0%, var(--secondary-color) 100%) !important;
  color: var(--white) !important;
  border-color: #263238 !important;
}

.btn-light {
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--white) !important;
}

.btn-light:hover {
  background-color: var(--gray-light) !important;
  color: var(--secondary-color) !important;
  border-color: var(--gray-light) !important;
}

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

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

.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

/* Spacing Utilities */
.px-5 { padding-left: 3rem !important; padding-right: 3rem !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; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-lg-5 { padding-right: 3rem !important; }
.m-3 { margin: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-lg-0 { margin-top: 0 !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; }
.mb-md-0 { margin-bottom: 0 !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.ms-auto { margin-left: auto !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.me-1 { margin-left: 0.25rem !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-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !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;
}

/* Rounded Corners */
.rounded {
  border-radius: 0.5rem !important;
}

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(211, 47, 47, 0.2) !important;
}

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

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
}

.card-text {
  color: #6c757d;
  line-height: 1.6;
}

/* Program Cards */
.program-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.program-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.2);
}

.program-item {
  opacity: 1;
  transition: all 0.5s ease;
}

.program-item.hidden {
  display: none;
}

/* Filter Buttons */
.filter-btn {
  background-color: var(--light-bg) !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--gray-light) !important;
  margin: 0.25rem;
}

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

/* Badges */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}

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

.bg-success {
  background-color: #28a745 !important;
}

.bg-warning {
  background-color: #ffc107 !important;
}

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

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

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

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

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

.bi::before {
  font-family: 'bootstrap-icons' !important;
}

/* Icon Animations */
.bi-clock-history::before,
.bi-graph-up-arrow::before,
.bi-people-fill::before,
.bi-shield-check::before,
.bi-lightbulb-fill::before,
.bi-heart-pulse-fill::before {
  animation: iconPulse 2s ease-in-out infinite;
}

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

/* Floating Action Button */
.position-fixed.end-0.bottom-0 {
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1040;
}

.position-fixed .btn {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.position-fixed .btn:hover {
  animation: none;
  transform: scale(1.1) !important;
}

/* Forms */
.needs-validation {
  width: 100%;
}

.form-floating {
  position: relative;
  margin-bottom: 1rem;
}

.form-control,
.form-select {
  width: 100%;
  padding: 1rem !important;
  font-size: 1rem;
  border: 2px solid var(--gray-light) !important;
  border-radius: 0.5rem !important;
  transition: all var(--transition-speed) ease;
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
  outline: none;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  border: 2px solid var(--gray-light);
  cursor: pointer;
}

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

.form-check-label {
  cursor: pointer;
  color: var(--secondary-color);
}

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

.list-unstyled li {
  padding: 0.5rem 0;
}

/* Accordion */
.accordion {
  margin-bottom: 1rem;
}

.accordion-item {
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.accordion-button {
  background-color: var(--light-bg) !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.25rem;
  border: none;
  transition: all var(--transition-speed) ease;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(1);
}

.accordion-collapse {
  border-top: 1px solid var(--gray-light);
}

.accordion-body {
  padding: 1.25rem;
  background-color: var(--white);
  color: var(--secondary-color);
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-item {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--gray-light);
}

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

.fade {
  transition: opacity 0.15s linear;
}

.modal-dialog {
  max-width: 500px;
  margin: 1.75rem auto;
}

.modal-lg {
  max-width: 800px !important;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background-color: var(--white);
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-dark) 100%);
  color: var(--white);
  border-bottom: none;
  padding: 1.5rem;
  border-radius: 1rem 1rem 0 0;
}

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

.modal-body {
  padding: 2rem;
}

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

.btn-close,
.btn-close-white {
  background-color: transparent;
  border: none;
  opacity: 1;
  filter: brightness(0) invert(1);
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.75;
}

/* Spinner */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pricing Overlay */
.pricing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(55, 71, 79, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  border-radius: 1rem;
}

.card:hover .pricing-overlay {
  opacity: 1;
}

.price-content {
  text-align: center;
  color: var(--white);
}

/* 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 {
  margin-right: 0;
  margin-left: 0;
}

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

.g-3 {
  gap: 1rem;
}

.g-4 {
  gap: 1.5rem;
}

.col-12,
.col-md-4,
.col-md-6,
.col-md-8,
.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,
.col-lg-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

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

/* Lead Text */
.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
}

.small {
  font-size: 0.875rem;
}

/* Top and Bottom Positioning */
.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }

/* Display Inline Block */
.d-inline-block {
  display: inline-block !important;
}

/* Scroll Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Section Styling */
section {
  padding: 5rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--light-bg);
}

/* Responsive Images in Grid */
.row .img-fluid {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  transition: transform var(--transition-speed) ease;
}

.row .img-fluid:hover {
  transform: scale(1.05);
}

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

@media (min-width: 768px) {
  .container { max-width: 720px; }
  
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  
  .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%; }
  
  .flex-lg-row-reverse { flex-direction: row-reverse !important; }
  
  .text-lg-end { text-align: right !important; }
  
  .ps-lg-5 { padding-left: 3rem !important; }
  .pe-lg-5 { padding-right: 3rem !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .mt-lg-0 { margin-top: 0 !important; }
}

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

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

/* Mobile Optimizations */
@media (max-width: 991px) {
  .navbar-collapse {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--gray-dark) 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .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: 1rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .vh-100 {
    min-height: 500px;
  }
}

@media (max-width: 576px) {
  .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; }
  .display-6 { font-size: 1.25rem !important; }
  
  .btn {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.95rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
  
  section {
    padding: 2rem 0;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .position-fixed,
  .modal {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
}

/* Accessibility Improvements */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-content:focus {
  top: 0;
}

/* Focus Visible for Keyboard Navigation */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth Page Transitions */
.page-transition {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #B71C1C 0%, var(--primary-color) 100%);
}

/* Loading Animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Parallax Effect Support */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Hover Lift Effect */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Underline Effect */
.underline-effect {
  position: relative;
  display: inline-block;
}

.underline-effect::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-speed) ease;
}

.underline-effect:hover::after {
  transform: scaleX(1);
}