/* Dragon Fire Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #FFA000;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #ffffff;
  --shadow-sm: 0 0.125rem 0.25rem rgba(211, 47, 47, 0.075);
  --shadow: 0 0.5rem 1rem rgba(211, 47, 47, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(211, 47, 47, 0.175);
  --transition: all 0.3s ease-in-out;
}

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

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

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

.navbar-dark {
  background-color: rgba(211, 47, 47, 0.95) !important;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: var(--transition);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.bi-fire {
  color: var(--secondary-color) !important;
  animation: flicker 2s infinite alternate;
  filter: drop-shadow(0 0 8px var(--secondary-color));
}

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

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

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background: rgba(255, 160, 0, 0.1) !important;
}

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 160, 0, 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='%23FFA000' 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%, #2d1414 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 160, 0, 0.2) 0%, transparent 50%);
  animation: pulseGlow 4s ease-in-out infinite;
}

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

.hero-section .position-absolute.w-100.h-100 {
  z-index: 1;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 10;
  animation: fadeInUp 1s ease-out;
}

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

.hero-section .display-1 {
  font-weight: 900 !important;
  color: var(--text-light) !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section .display-5 {
  color: var(--secondary-color) !important;
  font-weight: 700 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.25rem !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .fs-3 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid transparent;
  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: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-lg:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(211, 47, 47, 0.6) !important;
  background: linear-gradient(135deg, #b71c1c 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
}

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

.btn-outline-light:hover {
  background: var(--text-light) !important;
  color: var(--primary-color) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3) !important;
}

.btn-outline-dark {
  color: var(--text-dark) !important;
  border-color: var(--text-dark) !important;
  background: transparent !important;
}

.btn-outline-dark:hover {
  background: var(--text-dark) !important;
  color: var(--text-light) !important;
  border-color: var(--text-dark) !important;
}

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

.btn-outline-danger:hover {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

.btn-light {
  background: var(--light-bg) !important;
  color: var(--text-dark) !important;
  border-color: var(--light-bg) !important;
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
  color: var(--secondary-color) !important;
  font-size: 2rem;
}

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

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

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

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

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

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

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

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

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

.rounded-circle {
  border-radius: 50% !important;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
}

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

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

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

/* Background Colors */
.bg-danger {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%) !important;
  color: var(--text-light) !important;
}

.bg-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1414 100%) !important;
  color: var(--text-light) !important;
}

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

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

/* Text Colors */
.text-white {
  color: var(--text-light) !important;
}

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

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

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

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

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

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

/* Display and Typography */
.display-1 {
  font-size: calc(1.725rem + 5.7vw) !important;
  font-weight: 300;
  line-height: 1.2;
}

.display-3 {
  font-size: calc(1.525rem + 3.3vw) !important;
  font-weight: 300;
  line-height: 1.2;
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw) !important;
  font-weight: 300;
  line-height: 1.2;
}

.display-5 {
  font-size: calc(1.425rem + 2.1vw) !important;
  font-weight: 300;
  line-height: 1.2;
}

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

.fw-light {
  font-weight: 300 !important;
}

.fs-3 {
  font-size: calc(1.3rem + 0.6vw) !important;
}

.fs-4 {
  font-size: calc(1.275rem + 0.3vw) !important;
}

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

.h4 {
  font-size: calc(1.275rem + 0.3vw);
  font-weight: 600;
}

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

.small {
  font-size: 0.875em;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.card-body {
  padding: 1.5rem;
}

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

.card-text {
  color: var(--text-dark);
  line-height: 1.6;
}

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

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

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

.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

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

/* Team Cards */
.team-card {
  perspective: 1000px;
  height: 400px;
  position: relative;
}

.team-front,
.team-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.8s ease;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.team-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: var(--shadow);
}

.team-back {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  color: var(--text-light) !important;
  transform: rotateY(180deg);
}

.team-card:hover .team-front {
  transform: rotateY(-180deg);
}

.team-card:hover .team-back {
  transform: rotateY(0);
}

.team-back a {
  color: var(--text-light) !important;
}

.team-back a:hover {
  color: var(--secondary-color) !important;
}

/* Program Cards */
.program-card {
  border: 2px solid transparent;
  transition: var(--transition);
}

.program-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

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

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

/* Stats Section */
.col-md-3.col-sm-6 .p-4 {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.col-md-3.col-sm-6:hover .p-4 {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(211, 47, 47, 0.3);
  border-color: var(--secondary-color);
}

.col-md-3.col-sm-6:hover .p-4 * {
  color: var(--text-light) !important;
}

.bi-trophy-fill,
.bi-people-fill,
.bi-speedometer2,
.bi-shield-fill-check,
.bi-person-check-fill,
.bi-egg-fried,
.bi-heart-pulse-fill {
  font-size: 3rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.col-md-3.col-sm-6:hover .bi-trophy-fill,
.col-md-3.col-sm-6:hover .bi-people-fill,
.col-md-3.col-sm-6:hover .bi-speedometer2,
.col-md-3.col-sm-6:hover .bi-shield-fill-check,
.col-md-3.col-sm-6:hover .bi-person-check-fill,
.col-md-3.col-sm-6:hover .bi-egg-fried,
.col-md-3.col-sm-6:hover .bi-heart-pulse-fill {
  color: var(--secondary-color) !important;
  transform: scale(1.2) rotate(5deg);
}

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

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
}

.bi-star-fill {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.bi-arrow-right,
.bi-lightning-charge-fill,
.bi-calendar-check,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-tiktok,
.bi-map,
.bi-clock,
.bi-chat-dots-fill,
.bi-chat-dots,
.bi-chat-heart,
.bi-download,
.bi-list-ul,
.bi-shield-check,
.bi-collection,
.bi-gear,
.bi-share,
.bi-cookie,
.bi-person-check,
.bi-lock,
.bi-clock-history,
.bi-link-45deg,
.bi-people,
.bi-arrow-repeat,
.bi-envelope,
.bi-calendar,
.bi-graph-up,
.bi-camera-video,
.bi-lightning,
.bi-trophy,
.bi-heart-pulse,
.bi-clipboard-data-fill,
.bi-x-circle,
.bi-person-hearts,
.bi-info-circle {
  transition: var(--transition);
}

/* Social Icons */
.bi-facebook:hover {
  color: #1877f2 !important;
  transform: scale(1.2);
}

.bi-instagram:hover {
  color: #e4405f !important;
  transform: scale(1.2);
}

.bi-youtube:hover {
  color: #ff0000 !important;
  transform: scale(1.2);
}

.bi-tiktok:hover {
  color: #000000 !important;
  transform: scale(1.2);
}

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

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

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-check-input {
  border: 2px solid var(--primary-color);
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.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 {
  cursor: pointer;
  color: var(--text-dark);
}

/* Alerts */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid;
}

.alert-info {
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--primary-color) !important;
  border-left-color: var(--primary-color);
}

.alert-warning {
  background-color: rgba(255, 160, 0, 0.1);
  color: var(--secondary-color) !important;
  border-left-color: var(--secondary-color);
}

.alert-heading {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Accordion */
.accordion {
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
  background-color: transparent;
}

.accordion-button {
  background-color: transparent !important;
  color: var(--text-dark) !important;
  font-weight: 600;
  padding: 1.25rem 0;
  box-shadow: none !important;
  border: none;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color) !important;
  background-color: transparent !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D32F2F'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button.collapsed::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  padding: 1rem 0;
  color: var(--text-dark);
}

.accordion-collapse {
  border: none;
}

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

.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
  color: var(--text-light) !important;
  border: none;
  padding: 1.5rem;
}

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

.modal-body {
  padding: 2rem;
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

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

.position-sticky {
  position: sticky !important;
  top: 100px;
}

.position-fixed {
  position: fixed !important;
  bottom: 30px;
  right: 30px;
  z-index: 1040;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%) !important;
  color: var(--text-light) !important;
  border: none;
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.position-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(211, 47, 47, 0.7);
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 10px;
  background-color: rgba(211, 47, 47, 0.1);
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transition: width 0.6s ease;
  border-radius: 10px;
}

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

.carousel-item {
  min-height: 400px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%);
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(211, 47, 47, 0.8);
  border-radius: 50%;
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(211, 47, 47, 1);
}

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

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

.carousel-indicators {
  margin-bottom: 2rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  border: 2px solid var(--text-light);
}

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

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

.list-unstyled a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  transition: var(--transition);
}

.list-unstyled a:hover {
  color: var(--secondary-color) !important;
  padding-left: 5px;
}

/* Nav Pills */
.nav {
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-dark) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #b71c1c 100%) !important;
  color: var(--text-light) !important;
}

/* Button Group */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

/* Hexagon Container */
.hexagon-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

.hexagon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: rotate 10s linear infinite;
}

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

/* Ratio */
.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-4x3 {
  --bs-aspect-ratio: 75%;
}

/* Number Indicators */
.bi-1-circle-fill,
.bi-2-circle-fill,
.bi-3-circle-fill,
.bi-4-circle-fill {
  color: var(--primary-color);
  font-size: 3rem;
}

/* Opacity */
.opacity-90 {
  opacity: 0.9 !important;
}

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

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

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

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

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

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

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

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

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

/* Spacing */
.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-md-0 {
  margin-top: 0 !important;
}

.mt-lg-0 {
  margin-top: 0 !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;
}

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

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

.ms-2 {
  margin-left: 0.5rem !important;
}

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

.ms-5 {
  margin-left: 3rem !important;
}

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

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

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

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

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

.p-5 {
  padding: 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-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

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

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

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

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

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

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

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

.position-absolute {
  position: absolute !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;
}

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

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

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

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

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
}

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

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

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

/* Order */
.order-lg-1 {
  order: 1 !important;
}

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

/* Responsive Design */
@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
  
  .col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }
  
  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
  
  .col-md-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
}

@media (min-width: 992px) {
  .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-9 {
    flex: 0 0 auto;
    width: 75%;
  }
  
  .col-lg-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 80vh;
  }
  
  .hero-section .display-1 {
    font-size: 3rem !important;
  }
  
  .hero-section .display-5 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .sticky-top {
    top: 60px;
  }
  
  .position-sticky {
    position: relative !important;
    top: 0;
  }
  
  .order-lg-1 {
    order: 0 !important;
  }
  
  .order-lg-2 {
    order: 0 !important;
  }
  
  .ps-lg-5 {
    padding-left: 1rem !important;
  }
  
  .p-lg-5 {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .position-fixed {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.25rem;
  }
  
  .team-card {
    height: 350px;
  }
  
  .rounded-circle {
    width: 60px;
    height: 60px;
  }
  
  .carousel-item {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .hero-section .display-1 {
    font-size: 2rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .gap-4 {
    gap: 1rem !important;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

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

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

::-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%);
}

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

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

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

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

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

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