/* Crimson Power Architecture Studio - Custom Styles */

:root {
  --primary-color: #E53935;
  --secondary-color: #212121;
  --light-bg: #f8f9fa;
  --dark-bg: #1a1a1a;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(33, 33, 33, 0.98) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}

.navbar-brand:hover::after {
  width: 100%;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 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='%23E53935' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 5px;
  transition: var(--transition);
  position: relative;
}

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff !important;
  background: rgba(229, 57, 53, 0.15);
  transform: translateY(-2px);
}

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

.nav-link.active {
  background: rgba(229, 57, 53, 0.25) !important;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000 50%, var(--secondary-color) 100%);
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(229, 57, 53, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(229, 57, 53, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .display-1 {
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero-section .display-6 {
  color: var(--primary-color) !important;
  font-weight: 700;
  animation: fadeInUp 1.2s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem;
  animation: fadeInUp 1.4s ease;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.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;
  z-index: -1;
}

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

.btn-lg {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: 2px solid var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-lg:hover {
  background: #c62828 !important;
  border-color: #c62828 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6) !important;
}

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

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

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

.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

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

.btn-light:hover {
  background: var(--light-bg) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

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

.bi-chevron-down:hover {
  color: #ffffff !important;
  transform: scale(1.2);
}

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

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

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

/* Images */
.img-fluid {
  transition: var(--transition);
  border-radius: 10px;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

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

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

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

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

/* Badge */
.badge {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(229, 57, 53, 0.3);
}

/* Typography */
.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
}

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

.display-4 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--secondary-color);
}

.display-5 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

.display-6 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 600;
}

.h1, h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary-color);
}

.h2, h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--secondary-color);
}

.h4, h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

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

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

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

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

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

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 15px;
  transition: var(--transition);
  overflow: hidden;
  background: #ffffff;
  height: 100%;
}

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

.card-body {
  padding: 2rem;
}

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

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

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

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

/* Class/Trainer Cards */
.class-card,
.trainer-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.class-card:hover,
.trainer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(229, 57, 53, 0.3) !important;
}

.trainer-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Icons */
.bi {
  transition: var(--transition);
}

.bi-lightning-charge-fill,
.bi-award-fill,
.bi-speedometer2,
.bi-egg-fried,
.bi-people-fill,
.bi-heart-pulse-fill,
.bi-graph-up,
.bi-shield-check,
.bi-star-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-clipboard-check-fill,
.bi-graph-up-arrow,
.bi-check-circle-fill,
.bi-info-circle,
.bi-gear,
.bi-share,
.bi-cookie,
.bi-person-check,
.bi-hourglass-split,
.bi-people,
.bi-globe,
.bi-pencil-square,
.bi-telephone,
.bi-envelope,
.bi-geo-alt,
.bi-clock,
.bi-send,
.bi-chat-dots {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
}

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

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

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

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

.rounded-circle {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 57, 53, 0.1);
  flex-shrink: 0;
}

/* Progress Bar */
.progress {
  height: 10px;
  border-radius: 10px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, #c62828 100%) !important;
  transition: width 1s ease;
}

/* Schedule Info */
.schedule-info {
  background: rgba(229, 57, 53, 0.05);
  padding: 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
}

/* Filter Buttons */
.filter-btn,
.difficulty-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--secondary-color);
  background: transparent;
  color: var(--secondary-color) !important;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.difficulty-btn:hover,
.filter-btn.active,
.difficulty-btn.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Floating Action Buttons */
.floating-action-btn,
.floating-action-btn-email {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color) !important;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(229, 57, 53, 0.4);
  cursor: pointer;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.floating-action-btn-email {
  right: 110px;
}

.floating-action-btn:hover,
.floating-action-btn-email:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 30px rgba(229, 57, 53, 0.6) !important;
  background: #c62828 !important;
}

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

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: #adb5bd;
}

/* Table */
.table-responsive {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table {
  margin-bottom: 0;
}

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

.table-dark thead {
  background: #000 !important;
}

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

.table-hover tbody tr:hover {
  background: rgba(229, 57, 53, 0.1) !important;
  cursor: pointer;
}

.table td,
.table th {
  padding: 1rem;
  vertical-align: middle;
}

.bi-check-lg {
  color: #28a745 !important;
  font-size: 1.5rem;
}

.bi-x-lg {
  color: #6c757d !important;
  font-size: 1.5rem;
}

/* Accordion */
.accordion {
  --bs-accordion-border-color: #dee2e6;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.15);
}

.accordion-item {
  border: 2px solid #dee2e6;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
}

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

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

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

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(229, 57, 53, 0.15) !important;
}

.accordion-body {
  padding: 1.5rem;
  background: #f8f9fa;
  color: var(--secondary-color);
  line-height: 1.8;
}

.accordion-collapse {
  border-top: 2px solid #dee2e6;
}

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

.carousel-inner {
  border-radius: 15px;
}

.carousel-item {
  padding: 3rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
  color: #ffffff;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 50%;
}

.carousel-indicators {
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid #ffffff;
  opacity: 0.5;
  transition: var(--transition);
}

.carousel-indicators .active {
  opacity: 1;
  transform: scale(1.2);
}

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

.list-unstyled li {
  padding: 0.5rem 0;
  transition: var(--transition);
}

.list-unstyled li:hover {
  padding-left: 10px;
  color: var(--primary-color);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #c62828;
  text-decoration: none;
}

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

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

/* Ratio Container */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Utility Classes */
.position-relative {
  position: relative !important;
}

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

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

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

.sticky-lg-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Spacing */
.m-0 {
  margin: 0 !important;
}

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

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

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

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

.mt-5 {
  margin-top: 3rem !important;
}

.mt-auto {
  margin-top: auto !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-3 {
  margin-left: 1rem !important;
}

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

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

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

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

.p-0 {
  padding: 0 !important;
}

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

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

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

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

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

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

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

.px-3 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.px-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.g-0 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

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

/* Text Alignment */
.text-center {
  text-align: center !important;
}

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

.text-md-start {
  text-align: left !important;
}

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }

  .hero-section {
    padding: 100px 0 60px;
  }

  .display-1 {
    font-size: 2.5rem;
  }

  .floating-action-btn-email {
    right: 30px;
    bottom: 100px;
  }

  .d-lg-block {
    display: none !important;
  }

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

  .mb-lg-0 {
    margin-bottom: 1.5rem !important;
  }

  .col-lg-2,
  .col-lg-3,
  .col-lg-4,
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .text-md-start {
    text-align: left !important;
  }

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

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

  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

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

  .mb-lg-0 {
    margin-bottom: 0 !important;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

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

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Loading Animation */
.loading {
  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 var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Print Styles */
@media print {
  .navbar,
  .floating-action-btn,
  .floating-action-btn-email,
  .btn {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

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

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

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