/* Forge Fire Architecture Studio - Custom CSS */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FF5252;
  --secondary-color: #424242;
  --secondary-dark: #212121;
  --secondary-light: #616161;
  --accent-color: #FF6F00;
  --text-dark: #212121;
  --text-light: #FFFFFF;
  --text-muted: #757575;
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--bg-white);
}

/* ===== Typography ===== */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800 !important;
  letter-spacing: -1px;
  color: var(--text-dark) !important;
}

.h4, h4 {
  font-weight: 700 !important;
}

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
}

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

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

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

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

.fs-3 {
  font-size: 1.75rem !important;
}

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

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

/* ===== Navbar Styles ===== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  padding: 1rem 0 !important;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.navbar-toggler:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.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='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

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

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

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

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

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

/* ===== Hero Banner ===== */
.hero-banner {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(211,47,47,0.1)"/></svg>') no-repeat center bottom;
  background-size: cover;
  opacity: 0.5;
  animation: waveMove 10s ease-in-out infinite;
}

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

.hero-banner .position-absolute {
  z-index: 2;
}

.hero-banner .display-2 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-banner .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease-out;
}

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

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: 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 {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  color: var(--text-light) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-outline-dark:hover {
  background-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 66, 66, 0.3) !important;
}

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

.btn-outline-light:hover {
  background-color: var(--text-light) !important;
  color: var(--secondary-dark) !important;
  transform: translateY(-2px);
}

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

.btn-light:hover {
  background-color: var(--secondary-dark) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%) !important;
  color: var(--text-light) !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%) !important;
  color: var(--text-light) !important;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) !important;
}

/* ===== Cards ===== */
.card {
  border: none !important;
  border-radius: 12px !important;
  transition: var(--transition);
  overflow: hidden;
  background-color: var(--bg-white) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

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

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

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

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

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

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

/* ===== Icons ===== */
.rounded-circle {
  border-radius: 50% !important;
}

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

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

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

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

.bi-trophy-fill, .bi-person-arms-up, .bi-lightning-charge-fill,
.bi-people-fill, .bi-clipboard-data-fill, .bi-egg-fried,
.bi-award-fill, .bi-fire, .bi-gear-fill,
.bi-facebook, .bi-instagram, .bi-youtube,
.bi-geo-alt-fill, .bi-telephone-fill, .bi-envelope-fill,
.bi-arrow-right, .bi-check-circle-fill,
.bi-calendar-week, .bi-cash-stack, .bi-person-badge,
.bi-info-circle, .bi-question-circle, .bi-x-circle, .bi-quote {
  font-size: 1.5rem;
}

/* Icon Background Circles */
.text-center .rounded-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--text-light) !important;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.text-center .rounded-circle:hover {
  transform: rotate(360deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.text-center .rounded-circle .bi {
  font-size: 2rem !important;
  color: var(--text-light) !important;
}

/* ===== Sections ===== */
.py-5 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ===== Carousel ===== */
.carousel {
  position: relative;
}

.carousel-inner {
  border-radius: 12px;
  overflow: hidden;
}

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

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

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

.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 24px !important;
  height: 24px !important;
}

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

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

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

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

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

/* ===== Forms ===== */
.form-control, .form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--transition);
  background-color: var(--bg-white) !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;
  outline: none !important;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

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

.form-check-input {
  width: 1.25rem !important;
  height: 1.25rem !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: var(--transition);
}

.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) !important;
  margin-left: 0.5rem;
}

.invalid-feedback {
  display: none;
  color: var(--primary-color) !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-control.is-invalid {
  border-color: var(--primary-color) !important;
}

/* ===== Alerts ===== */
.alert {
  border-radius: 8px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  font-weight: 500 !important;
}

.alert-success {
  background-color: #4CAF50 !important;
  color: var(--text-light) !important;
}

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

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

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

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

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

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

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

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

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--bg-white) !important;
  color: var(--text-dark) !important;
}

.accordion-collapse {
  border: none !important;
}

/* ===== Badge ===== */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

/* ===== Table ===== */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
}

.table {
  margin-bottom: 0 !important;
  color: var(--text-dark) !important;
}

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

.table thead th {
  font-weight: 600 !important;
  padding: 1rem !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody td {
  padding: 1rem !important;
  vertical-align: middle !important;
  border-color: #E0E0E0 !important;
}

.table-bordered {
  border: 1px solid #E0E0E0 !important;
}

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

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

/* ===== Footer ===== */
footer {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

footer h5, footer h6 {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

footer p, footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a {
  text-decoration: none !important;
  transition: var(--transition);
  display: inline-block;
}

footer a:hover {
  color: var(--primary-light) !important;
  transform: translateX(5px);
}

.list-unstyled {
  list-style: none !important;
  padding-left: 0 !important;
}

.list-unstyled li {
  margin-bottom: 0.75rem;
}

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

/* Social Icons */
footer .bi-facebook, footer .bi-instagram, footer .bi-youtube {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  margin: 0 0.25rem;
}

footer .bi-facebook:hover, footer .bi-instagram:hover, footer .bi-youtube:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ms-2 {
  margin-left: 0.5rem !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;
}

.me-4 {
  margin-right: 1.5rem !important;
}

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

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

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

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

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

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

.pe-lg-4 {
  padding-right: 2rem !important;
}

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

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

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

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

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

.container-fluid {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.opacity-50 {
  opacity: 0.5 !important;
}

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

.small {
  font-size: 0.875rem !important;
}

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

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

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

.g-3 {
  --bs-gutter-x: 1.5rem !important;
  --bs-gutter-y: 1.5rem !important;
}

.g-4 {
  --bs-gutter-x: 2rem !important;
  --bs-gutter-y: 2rem !important;
}

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

/* ===== 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: calc(3 / 4 * 100%);
}

/* ===== Navigation Tabs ===== */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
}

/* ===== Filter Buttons ===== */
.filter-btn {
  background-color: var(--bg-light) !important;
  color: var(--text-dark) !important;
  border: 2px solid transparent !important;
  transition: var(--transition);
}

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

/* ===== Program Cards ===== */
.program-card {
  transition: var(--transition);
  cursor: pointer;
}

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

.program-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.program-details.show {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
}

.toggle-details {
  cursor: pointer;
  transition: var(--transition);
}

.toggle-details:hover {
  background-color: var(--secondary-dark) !important;
}

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

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

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

@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 pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

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

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

/* ===== Responsive Design ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }
  
  .navbar-nav {
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-banner {
    min-height: 70vh;
  }
  
  .hero-banner .display-2 {
    font-size: 2.5rem !important;
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  .display-5 {
    font-size: 1.75rem !important;
  }
  
  .display-6 {
    font-size: 1.5rem !important;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .position-sticky {
    position: relative !important;
  }
  
  .carousel-control-prev, .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
  }
  
  .carousel-control-prev {
    left: 10px !important;
  }
  
  .carousel-control-next {
    right: 10px !important;
  }
  
  .text-lg-start, .text-lg-end {
    text-align: center !important;
  }
  
  .mb-lg-0 {
    margin-bottom: 1rem !important;
  }
  
  .order-lg-1 {
    order: 0 !important;
  }
  
  .order-lg-2 {
    order: 0 !important;
  }
  
  .pe-lg-4, .ps-lg-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (max-width: 767.98px) {
  .hero-banner .display-2 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  .text-center .rounded-circle {
    width: 60px;
    height: 60px;
  }
  
  .text-center .rounded-circle .bi {
    font-size: 1.5rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .px-5 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .text-md-start, .text-md-end {
    text-align: center !important;
  }
  
  .mb-md-0 {
    margin-bottom: 1rem !important;
  }
  
  footer {
    text-align: center !important;
  }
  
  footer .list-unstyled {
    margin-bottom: 2rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-banner .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .gap-3 {
    gap: 0.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-img-top {
    height: 200px;
  }
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 6px;
  border: 2px solid var(--bg-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

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

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

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

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

/* ===== Loading Animation ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 1s ease-in-out infinite;
}

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

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

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

/* ===== Custom Forge Fire Elements ===== */
.fire-effect {
  position: relative;
  overflow: hidden;
}

.fire-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
  animation: fireMove 2s linear infinite;
}

@keyframes fireMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ember-glow {
  box-shadow: 0 0 20px rgba(211, 47, 47, 0.3),
              0 0 40px rgba(211, 47, 47, 0.2),
              0 0 60px rgba(211, 47, 47, 0.1);
  animation: emberPulse 3s ease-in-out infinite;
}

@keyframes emberPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.3),
                0 0 40px rgba(211, 47, 47, 0.2),
                0 0 60px rgba(211, 47, 47, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(211, 47, 47, 0.4),
                0 0 50px rgba(211, 47, 47, 0.3),
                0 0 70px rgba(211, 47, 47, 0.2);
  }
}