/* Crimson Power Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --dark-color: #1a1a1a;
  --light-color: #f8f9fa;
  --accent-color: #FF5252;
  --transition: all 0.3s ease;
}

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

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
  transition: var(--transition);
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

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

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, var(--secondary-color) 50%, #5a5a5a 100%);
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 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="%23D32F2F" fill-opacity="0.1"%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.5;
}

.hero-section .text-white {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.display-1 {
  font-weight: 800 !important;
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  line-height: 1.1 !important;
  margin-bottom: 1.5rem !important;
  color: #ffffff !important;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem) !important;
  font-weight: 300;
  color: #ffffff !important;
}

/* Buttons */
.btn {
  border-radius: 50px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition) !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

.btn-lg {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 1rem 3rem !important;
  font-size: 1.1rem !important;
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-lg:hover {
  background: #B71C1C !important;
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(211, 47, 47, 0.6);
}

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

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

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

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

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

.btn-secondary:hover {
  background: #333333 !important;
  color: #ffffff !important;
}

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

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

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

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

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

/* Animation Classes */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
  color: #ffffff !important;
  cursor: pointer;
  transition: var(--transition);
}

.animate-bounce:hover {
  color: var(--primary-color) !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.2);
}

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

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

.card-text {
  color: var(--secondary-color) !important;
  line-height: 1.8;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #B71C1C) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
}

.card-footer {
  background: var(--light-color) !important;
  border-top: 2px solid var(--primary-color) !important;
  padding: 1rem 1.5rem !important;
}

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

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

/* Sections */
.py-5 {
  padding: 5rem 0 !important;
}

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

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

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

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

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

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

.bg-info {
  background: #17a2b8 !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

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

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

.shadow-lg {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Typography */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--secondary-color);
}

.display-3 {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}

.display-4 {
  font-size: clamp(1.75rem, 4vw, 3rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.display-6 {
  font-size: clamp(1.25rem, 2.5vw, 2rem) !important;
}

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

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

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

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

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

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

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

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

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

.d-inline-flex {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #ffffff !important;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.d-inline-flex:hover {
  background: #B71C1C;
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.5);
}

/* Forms */
.form-control {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  color: var(--secondary-color) !important;
  background: #ffffff !important;
}

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

.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  transition: var(--transition) !important;
  color: var(--secondary-color) !important;
  background: #ffffff !important;
}

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

.form-label {
  font-weight: 600 !important;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem !important;
}

/* Multi-Step Form */
.multi-step-form {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step {
  display: none;
  animation: fadeIn 0.5s;
}

.step.active {
  display: block;
}

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

/* Progress Bar */
.progress {
  height: 8px !important;
  border-radius: 10px !important;
  background: #e0e0e0 !important;
  overflow: visible !important;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
  border-radius: 10px !important;
  transition: width 0.6s ease !important;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

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

.list-group {
  border-radius: 15px !important;
  overflow: hidden;
}

.list-group-item {
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 1rem 1.5rem !important;
  transition: var(--transition) !important;
  color: var(--secondary-color) !important;
  background: #ffffff !important;
}

.list-group-item:last-child {
  border-bottom: none !important;
}

.list-group-item:hover {
  background: var(--light-color) !important;
  padding-left: 2rem !important;
}

.list-group-item-action {
  cursor: pointer;
}

.list-group-item-action:hover {
  background: rgba(211, 47, 47, 0.05) !important;
}

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

/* Alerts */
.alert {
  border: none !important;
  border-radius: 15px !important;
  padding: 1.5rem !important;
  border-left: 5px solid !important;
}

.alert-light {
  background: #f8f9fa !important;
  border-left-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
}

.alert-warning {
  background: #fff3cd !important;
  border-left-color: #ffc107 !important;
  color: #856404 !important;
}

.alert-info {
  background: #d1ecf1 !important;
  border-left-color: #17a2b8 !important;
  color: #0c5460 !important;
}

/* Timeline */
.timeline-container {
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-content {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.4);
}

/* Trainer Card */
.trainer-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.trainer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(211, 47, 47, 0.3);
}

.trainer-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.trainer-card:hover .trainer-image {
  transform: scale(1.1);
}

.trainer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 2rem;
  color: #ffffff !important;
  transform: translateY(60%);
  transition: var(--transition);
}

.trainer-card:hover .trainer-overlay {
  transform: translateY(0);
}

.trainer-info h4,
.trainer-info p {
  color: #ffffff !important;
}

/* Schedule Grid */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.schedule-item {
  background: #ffffff;
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.schedule-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(211, 47, 47, 0.2);
}

/* Class Card */
.class-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(211, 47, 47, 0.7), rgba(0, 0, 0, 0.9));
  transition: var(--transition);
}

.class-card:hover::before {
  background: linear-gradient(to bottom, rgba(211, 47, 47, 0.9), rgba(0, 0, 0, 0.95));
}

.class-card:hover {
  transform: scale(1.05);
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 15px !important;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: var(--light-color) !important;
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--primary-color), #B71C1C) !important;
  color: #ffffff !important;
}

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

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

.accordion-body {
  padding: 1.5rem !important;
  color: var(--secondary-color) !important;
  background: #ffffff !important;
}

/* Table */
.table {
  color: var(--secondary-color) !important;
  border-radius: 15px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--primary-color), #B71C1C) !important;
  color: #ffffff !important;
}

.table thead th {
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
  padding: 1rem !important;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: rgba(211, 47, 47, 0.05) !important;
}

.table-bordered {
  border: 2px solid #e0e0e0 !important;
}

.table-bordered td,
.table-bordered th {
  border: 1px solid #e0e0e0 !important;
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item {
  height: 500px;
}

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

.carousel-control-prev,
.carousel-control-next {
  width: 60px !important;
  height: 60px !important;
  background: var(--primary-color) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  opacity: 0.9 !important;
  transition: var(--transition) !important;
}

.carousel-control-prev {
  left: 20px !important;
}

.carousel-control-next {
  right: 20px !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* Sticky Elements */
.sticky-top,
.position-sticky {
  position: sticky !important;
  top: 80px !important;
  z-index: 1020 !important;
}

.fixed-top {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 1030 !important;
}

/* Utility Classes */
.border {
  border: 1px solid #e0e0e0 !important;
}

.border-4 {
  border-width: 4px !important;
}

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

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

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

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

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

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

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

.d-block {
  display: block !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-start {
  text-align: left !important;
}

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

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

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

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

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

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

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

/* Spacing Utilities */
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !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; }

.pt-5 { padding-top: 3rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-5 { padding-right: 3rem !important; }

.m-3 { margin: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-lg-0 { margin-top: 0 !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-auto { margin-left: auto !important; }

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(211, 47, 47, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .hero-section {
    min-height: 80vh;
    padding-top: 100px;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-marker {
    left: 11px;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .pe-5 {
    padding-right: 1rem !important;
  }
  
  .text-lg-end,
  .text-lg-start {
    text-align: center !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-lg-0 {
    margin-top: 1.5rem !important;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  .order-md-1 {
    order: 1;
  }
  
  .order-md-2 {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .trainer-image {
    height: 300px;
  }
  
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  
  .text-md-start,
  .text-md-end {
    text-align: center !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
  }
  
  .navbar-brand {
    font-size: 1.5rem !important;
  }
  
  .d-inline-flex {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .class-card {
    height: 250px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .carousel-control-prev,
  .carousel-control-next,
  .animate-bounce {
    display: none !important;
  }
  
  .card,
  .timeline-content {
    break-inside: avoid;
  }
}

/* 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 */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--primary-color) !important;
  outline-offset: 2px !important;
}

/* Selection */
::selection {
  background: var(--primary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--primary-color);
  color: #ffffff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Slide In Animation */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}