/* Crimson Steel Architecture Studio - Custom Styles */

/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #B71C1C;
  --light-gray: #F5F5F5;
  --dark-gray: #424242;
  --white: #FFFFFF;
  --transition-speed: 0.3s;
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ==================== NAVIGATION ==================== */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(33, 33, 33, 0.98) !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.8rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

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

.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: 4px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

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

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

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

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

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

/* ==================== HERO SECTION ==================== */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.7) 0%, rgba(33, 33, 33, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  max-width: 1200px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-weight: 800;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
  color: var(--white) !important;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta-btn {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border: 2px solid var(--primary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.hero-cta-btn:hover {
  background: transparent !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.scroll-indicator {
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--white) !important;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ==================== SECTIONS ==================== */
section {
  padding: 5rem 0;
}

.display-3,
.display-4,
.display-5 {
  font-weight: 700;
  color: var(--secondary-color);
}

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

/* ==================== BUTTONS ==================== */
.btn {
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

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

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

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

.btn-light:hover {
  background: transparent !important;
  color: var(--white) !important;
  border-color: var(--white) !important;
  transform: translateY(-2px);
}

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

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

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

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

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

/* ==================== SERVICE CARDS ==================== */
.service-card {
  background: var(--white);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(211, 47, 47, 0.2) !important;
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all var(--transition-speed) ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ==================== CARDS ==================== */
.card {
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  border: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
  transition: all var(--transition-speed) ease;
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--secondary-color);
  font-weight: 700;
}

.card-text {
  color: var(--dark-gray);
}

/* ==================== CLASS CARDS ==================== */
.class-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.8) 0%, rgba(33, 33, 33, 0.8) 100%);
  opacity: 0;
  transition: all var(--transition-speed) ease;
  z-index: 1;
}

.class-card:hover::before {
  opacity: 1;
}

.class-card .card-body {
  position: relative;
  z-index: 2;
}

/* ==================== TRAINER CARDS ==================== */
.trainer-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.trainer-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  padding: 4px;
  transition: all var(--transition-speed) ease;
}

.trainer-card:hover img {
  transform: scale(1.05);
  border-color: var(--secondary-color);
}

.trainer-certs {
  font-size: 0.875rem;
  color: var(--dark-gray);
}

/* ==================== TIMELINE ==================== */
.timeline-block {
  position: relative;
  padding-left: 2rem;
}

.timeline-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary-color);
}

/* ==================== FORMS ==================== */
.form-control,
.form-select {
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  background: var(--white) !important;
  color: var(--secondary-color) !important;
}

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

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

.form-check-input {
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

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

.form-check-label {
  cursor: pointer;
  color: var(--secondary-color);
}

.invalid-feedback {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* ==================== ACCORDION ==================== */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  border-radius: 8px !important;
  overflow: hidden;
}

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

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

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

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

.accordion-body {
  padding: 1.5rem;
  background: var(--light-gray);
  color: var(--secondary-color);
}

/* ==================== BADGES ==================== */
.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 4px;
}

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

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

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

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

/* ==================== SCHEDULE CAROUSEL ==================== */
.schedule-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.schedule-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-gray);
}

.schedule-carousel::-webkit-scrollbar {
  height: 8px;
}

.schedule-carousel::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 4px;
}

.schedule-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.schedule-day-card {
  min-width: 300px;
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

.schedule-day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.2);
}

.class-time-slot {
  background: var(--light-gray);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.class-time-slot:hover {
  background: rgba(211, 47, 47, 0.1);
  border-color: var(--primary-color) !important;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-btn {
  background: var(--white) !important;
  color: var(--secondary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 1.5rem;
  margin: 0.25rem;
  transition: all var(--transition-speed) ease;
}

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

/* ==================== MASONRY GRID ==================== */
.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-grid > div {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
  }
}

/* ==================== PRICING ==================== */
.pricing-display {
  position: relative;
}

.monthly-price,
.annual-price {
  transition: all var(--transition-speed) ease;
}

.monthly-price.d-none,
.annual-price.d-none {
  display: none !important;
}

/* ==================== CAROUSEL ==================== */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

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

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
  color: var(--white);
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

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

footer .bi {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: all var(--transition-speed) ease;
}

footer .bi:hover {
  color: var(--primary-color) !important;
  transform: scale(1.2);
}

/* ==================== UTILITIES ==================== */
.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

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

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

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

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

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

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

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

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

/* ==================== POSITION UTILITIES ==================== */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

/* ==================== SPACING UTILITIES ==================== */
.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-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

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

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

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

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

.p-5 {
  padding: 3rem !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;
}

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

.ms-1 {
  margin-left: 0.25rem !important;
}

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

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

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

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

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

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

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

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

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

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

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .display-1 {
    font-size: 4rem;
  }
  
  .display-3 {
    font-size: 3rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    height: 70vh;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .display-1 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .fs-3 {
    font-size: 1.25rem !important;
  }
  
  .hero-cta-btn {
    padding: 0.75rem 2rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .schedule-day-card {
    min-width: 250px;
  }
}

@media (max-width: 576px) {
  .display-1 {
    font-size: 2rem;
  }
  
  .display-3 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    height: 60vh;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .p-md-5 {
    padding: 1.5rem !important;
  }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ==================== LOADING STATES ==================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
  transition: all var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

/* ==================== ICON STYLES ==================== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-check-circle-fill {
  color: #4CAF50;
}

.bi-x-circle-fill {
  color: var(--primary-color);
}

.bi-info-circle {
  color: #2196F3;
}

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

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
}

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

/* ==================== BTN GROUP ==================== */
.btn-group {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
}

.btn-group .btn {
  border-radius: 0;
  margin: 0;
}

.btn-check:checked + .btn {
  background: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
}

/* ==================== OBJECT FIT ==================== */
.object-fit-cover {
  object-fit: cover !important;
}

/* ==================== BORDER UTILITIES ==================== */
.border-0 {
  border: 0 !important;
}

.border-start {
  border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
}

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

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

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .scroll-indicator,
  .btn,
  footer {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}