/* Architectural Studio Theme - Ember Red & Charcoal */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --ember-light: #E57373;
  --charcoal-dark: #212121;
  --accent-warm: #FF6F00;
  --text-light: #F5F5F5;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #1a1a1a !important;
  color: var(--text-light) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, var(--secondary-color) 100%) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(211, 47, 47, 0.1);
  transition: var(--transition-smooth);
  padding: 1rem 0 !important;
}

.navbar-dark {
  border-bottom: 2px solid var(--primary-color);
}

.navbar.fixed-top {
  z-index: 1030;
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 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='%23D32F2F' 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(--text-light) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(211, 47, 47, 0.1) !important;
}

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

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

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

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

.min-vh-100 {
  min-height: 100vh !important;
  background: linear-gradient(135deg, var(--charcoal-dark) 0%, var(--secondary-color) 50%, rgba(211, 47, 47, 0.2) 100%);
  position: relative;
}

.min-vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(45deg, rgba(211, 47, 47, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(211, 47, 47, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(211, 47, 47, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(211, 47, 47, 0.05) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 0 30px, 30px -30px, -30px 0px; }
  100% { background-position: 60px 60px, 60px 90px, 90px 30px, 30px 60px; }
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

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

.display-4 {
  font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--text-light) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
  font-weight: 600 !important;
}

.lead {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  color: var(--text-light) !important;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: var(--transition-smooth);
  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.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

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

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

.btn-primary,
.btn.bg-danger,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #B71C1C 0%, var(--primary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
  color: white !important;
}

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

.btn-outline-light:hover {
  background: var(--text-light) !important;
  color: var(--secondary-color) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(245, 245, 245, 0.3);
}

.btn-light {
  background: var(--text-light) !important;
  color: var(--secondary-color) !important;
  box-shadow: 0 4px 15px rgba(245, 245, 245, 0.2);
}

.btn-light:hover {
  background: white !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.bi-chevron-down {
  animation: bounce 2s infinite;
  font-size: 2rem;
  color: var(--primary-color) !important;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Container and Layout */
.container,
.container-fluid {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  background: var(--charcoal-dark);
}

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

.p-3 {
  padding: 1rem !important;
}

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

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

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

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

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

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pt-4 {
  padding-top: 1.5rem !important;
}

.pt-5 {
  padding-top: 3rem !important;
}

.pb-4 {
  padding-bottom: 1.5rem !important;
}

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

.m-3 {
  margin: 1rem !important;
}

.m-4 {
  margin: 1.5rem !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;
}

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

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

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

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

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

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

.g-0 {
  margin-right: 0;
  margin-left: 0;
}

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

.g-3 {
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.g-3 > * {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.g-4 {
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

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

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

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

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

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

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

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

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

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

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

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

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

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

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

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

/* Cards */
.card {
  background: var(--secondary-color) !important;
  border: none !important;
  border-radius: 12px;
  transition: var(--transition-smooth);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
}

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

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

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

.h3,
.h4 {
  color: var(--text-light) !important;
  font-weight: 600;
}

.card-text {
  color: rgba(245, 245, 245, 0.85) !important;
  font-size: 1rem;
  line-height: 1.8;
}

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

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

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

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

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

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(211, 47, 47, 0.2) !important;
}

.shadow {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2) !important;
}

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

.bi-fire,
.bi-heart-pulse,
.bi-person-arms-up,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-twitter,
.bi-arrow-right,
.bi-clock,
.bi-compass,
.bi-info-circle,
.bi-shield-check,
.bi-lock-fill,
.bi-people-fill,
.bi-hand-thumbs-up,
.bi-question-circle,
.bi-arrow-clockwise,
.bi-lightning-fill,
.bi-graph-up,
.bi-chat-dots,
.bi-check-circle-fill {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
}

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

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: var(--text-light) !important;
  display: flex;
  align-items: center;
}

.bi-check-circle-fill {
  font-size: 1.2rem !important;
  flex-shrink: 0;
}

/* Text Utilities */
.text-white {
  color: white !important;
}

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

.text-muted {
  color: rgba(245, 245, 245, 0.6) !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: left !important;
}

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

.text-decoration-none:hover {
  color: var(--primary-color) !important;
}

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

/* Flex Utilities */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !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;
}

/* Background Utilities */
.bg-white {
  background-color: #fff !important;
}

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

/* Story Section */
.story-content {
  background: rgba(66, 66, 66, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.story-content:hover {
  background: rgba(66, 66, 66, 0.8);
  transform: translateX(10px);
}

/* Philosophy Section */
.philosophy-section {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, transparent 100%);
  border-radius: 12px;
  padding: 2rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
  padding: 2rem 0;
}

.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  background: var(--secondary-color);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.carousel-item.active {
  display: block;
}

.carousel-item.show {
  display: block;
}

.slide {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: var(--primary-color) !important;
  text-align: center;
  background: none;
  border: 0;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  color: var(--ember-light) !important;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 1.5rem;
}

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

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

.small {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Forms */
.form-label {
  color: var(--text-light) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  background: rgba(66, 66, 66, 0.8) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  color: var(--text-light) !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

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

.form-control::placeholder {
  color: rgba(245, 245, 245, 0.5) !important;
}

.form-check {
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  background-color: rgba(66, 66, 66, 0.8) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  border-radius: 0.25rem;
  transition: var(--transition-smooth);
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25) !important;
}

.form-check-label {
  color: var(--text-light) !important;
  margin-left: 0.5rem;
}

/* Badges */
.badge {
  background: var(--primary-color) !important;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Instructor Cards */
.instructor-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

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

.instructor-certs {
  background: rgba(211, 47, 47, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 8px;
}

/* Transformation Slider */
.transformation-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.transformation-after {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.transformation-range {
  width: 100%;
  margin-top: 1rem;
  accent-color: var(--primary-color);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--text-light) !important;
  border-collapse: collapse;
}

.table-dark {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

.table-bordered {
  border: 1px solid rgba(211, 47, 47, 0.3);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid rgba(211, 47, 47, 0.3);
  padding: 1rem;
}

.table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filter Buttons */
.filter-btn {
  background: var(--secondary-color) !important;
  color: var(--text-light) !important;
  border: 2px solid rgba(211, 47, 47, 0.3) !important;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.4);
}

.class-item {
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.class-item.hidden {
  opacity: 0;
  transform: scale(0.9);
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

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

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

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

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

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

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

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

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

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

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

/* Order Classes */
.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

.order-lg-1 {
  order: 1;
}

.order-lg-2 {
  order: 2;
}

/* Accordion */
.accordion {
  width: 100%;
}

.accordion-item {
  background: var(--secondary-color) !important;
  border: 1px solid rgba(211, 47, 47, 0.2) !important;
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

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

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

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

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

.accordion-collapse {
  border-top: 1px solid rgba(211, 47, 47, 0.2);
}

.accordion-body {
  background: rgba(33, 33, 33, 0.5);
  color: var(--text-light) !important;
  padding: 1.5rem;
}

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

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

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

/* Border Classes */
.border-white {
  border-color: white !important;
}

/* Width and Height */
.w-100 {
  width: 100% !important;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .lead {
    font-size: 1rem !important;
  }
}

/* Responsive Grid */
@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

@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-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
}

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

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

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

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

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

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(211, 47, 47, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

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

::-webkit-scrollbar-track {
  background: var(--charcoal-dark);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--ember-light);
}

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

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

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

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

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

/* High Contrast Support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid white !important;
  }
  
  .card {
    border: 2px solid var(--primary-color) !important;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile Optimizations */
@media (max-width: 576px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem !important;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
}