/* Crimson Thunder Architecture Studio - Custom Styles */

/* ============================================
   ROOT VARIABLES & BOOTSTRAP OVERRIDES
   ============================================ */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --dark-bg: #0a0a0a;
  --light-text: #ffffff;
  --muted-text: #b0b0b0;
  --accent-red: #FF5252;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-intense: 0 10px 40px rgba(211, 47, 47, 0.3);
}

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

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

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(211, 47, 47, 0.2);
  transition: var(--transition-smooth);
  padding: 1rem 0 !important;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 30px rgba(211, 47, 47, 0.4);
}

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

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  transition: var(--transition-smooth);
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.3) !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%28211, 47, 47, 1%29' 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, var(--secondary-color) 0%, #000000 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.4) 0%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 2;
}

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

.hero-title {
  font-weight: 900 !important;
  text-shadow: 2px 2px 20px rgba(211, 47, 47, 0.5);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 2rem !important;
}

.hero-tagline {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 300;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.hero-cta-buttons .btn {
  min-width: 200px;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-width: 2px !important;
  transition: var(--transition-smooth);
}

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

.btn-danger:hover {
  background-color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.5) !important;
  color: #ffffff !important;
}

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

.btn-outline-light:hover {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3) !important;
}

.scroll-indicator {
  z-index: 3;
  color: #ffffff !important;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

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

.bg-black {
  background-color: #000000 !important;
}

.display-1,
.display-3,
.display-4 {
  font-weight: 800 !important;
  color: var(--light-text) !important;
  letter-spacing: -1px;
}

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

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

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%) !important;
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 15px;
  transition: var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-intense);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition-smooth);
}

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

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

.service-card .h4 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.95rem;
}

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

.shadow-lg {
  box-shadow: 0 15px 50px rgba(211, 47, 47, 0.3) !important;
}

.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(211, 47, 47, 0.5) !important;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
.stat-box {
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(33, 33, 33, 0.8) 100%);
  border: 1px solid rgba(211, 47, 47, 0.3);
  transition: var(--transition-smooth);
}

.stat-box:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(33, 33, 33, 0.9) 100%);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
}

.stat-box .display-4 {
  color: var(--primary-color) !important;
  font-weight: 900 !important;
  margin-bottom: 0.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #B71C1C 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

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

.cta-section h2 {
  color: #ffffff !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95) !important;
}

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

.btn-light:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #000000 !important;
  border-top: 2px solid var(--primary-color);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(211, 47, 47, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color) !important;
  transition: var(--transition-smooth);
  font-size: 1.25rem;
}

.social-links a:hover {
  background: var(--primary-color);
  color: #ffffff !important;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 5px 20px rgba(211, 47, 47, 0.5);
}

footer a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: var(--transition-smooth);
  display: inline-block;
}

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

footer h5,
footer h6 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.border-secondary {
  border-color: rgba(211, 47, 47, 0.3) !important;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
  position: relative;
  padding: 3rem 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--primary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.2);
}

.timeline-item:last-child {
  border-left: 2px solid transparent;
}

.timeline-item .h5 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* ============================================
   FORMS
   ============================================ */
.form-floating .form-control,
.form-floating .form-select {
  background: rgba(33, 33, 33, 0.8) !important;
  border: 1px solid rgba(211, 47, 47, 0.3) !important;
  color: #ffffff !important;
  transition: var(--transition-smooth);
}

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

.form-floating label {
  color: rgba(255, 255, 255, 0.6) !important;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label,
.form-floating .form-select:focus ~ label {
  color: var(--primary-color) !important;
}

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

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  --bs-accordion-bg: rgba(33, 33, 33, 0.8) !important;
  --bs-accordion-border-color: rgba(211, 47, 47, 0.3) !important;
  --bs-accordion-btn-color: #ffffff !important;
  --bs-accordion-active-bg: rgba(211, 47, 47, 0.1) !important;
  --bs-accordion-active-color: var(--primary-color) !important;
}

.accordion-button {
  background: rgba(33, 33, 33, 0.8) !important;
  color: #ffffff !important;
  border-color: rgba(211, 47, 47, 0.3) !important;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: rgba(211, 47, 47, 0.2) !important;
  color: var(--primary-color) !important;
  box-shadow: inset 0 -1px 0 rgba(211, 47, 47, 0.5) !important;
}

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

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

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) saturate(100%) invert(29%) sepia(89%) saturate(1615%) hue-rotate(345deg) brightness(90%) contrast(90%);
}

.accordion-body {
  background: rgba(0, 0, 0, 0.4) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.progress {
  background: rgba(33, 33, 33, 0.8) !important;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
}

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

/* ============================================
   CLASS CARDS
   ============================================ */
.class-card {
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
  border: 1px solid rgba(211, 47, 47, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.class-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.4);
  border-color: var(--primary-color);
}

.class-card img {
  transition: var(--transition-smooth);
}

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

.object-fit-cover {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* ============================================
   TRAINER HEXAGON
   ============================================ */
.hexagon-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.trainer-hex {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.trainer-hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hexagon-wrapper:hover .trainer-hex {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.5);
}

.hexagon-wrapper:hover .trainer-hex img {
  transform: scale(1.1);
}

.trainer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.6) 0%, rgba(0, 0, 0, 0.6) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hexagon-wrapper:hover .trainer-overlay {
  opacity: 1;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%) !important;
  border: 2px solid var(--primary-color) !important;
  color: #ffffff !important;
}

.modal-header {
  border-bottom: 1px solid rgba(211, 47, 47, 0.3) !important;
}

.modal-body {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.btn-close:hover {
  filter: brightness(0) saturate(100%) invert(29%) sepia(89%) saturate(1615%) hue-rotate(345deg) brightness(90%) contrast(90%);
}

/* ============================================
   PRIVACY NAV
   ============================================ */
.privacy-nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none !important;
  padding: 0.75rem 1.5rem;
  border-left: 3px solid transparent;
  transition: var(--transition-smooth);
  display: block;
}

.privacy-nav-link:hover,
.privacy-nav-link.active {
  color: var(--primary-color) !important;
  border-left-color: var(--primary-color);
  background: rgba(211, 47, 47, 0.1);
  transform: translateX(5px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.rounded-2 {
  border-radius: 10px !important;
}

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

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

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

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

.list-unstyled li {
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85) !important;
}

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

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

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Fade in on scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.3);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-title {
    font-size: 3rem !important;
  }
  
  .hero-tagline {
    font-size: 1.25rem !important;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    gap: 1rem !important;
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
  }
  
  .display-1 {
    font-size: 3.5rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-tagline {
    font-size: 1.1rem !important;
  }
  
  .service-icon {
    font-size: 2.5rem;
  }
  
  .stat-box {
    margin-bottom: 1rem;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .display-4 {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .hero-tagline {
    font-size: 1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

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

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

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

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