/* Crimson Forge Architecture Studio - Custom Styles */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --accent-gold: #FFC107;
  --text-light: #FFFFFF;
  --text-dark: #212121;
  --bg-dark: #1A1A1A;
  --bg-light: #F5F5F5;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

/* Typography */
.display-1, .display-3, .display-4, .display-5 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

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

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

.text-muted {
  color: #9E9E9E !important;
}

.text-light {
  color: #F5F5F5 !important;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%) !important;
  padding: 1rem 0;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(211, 47, 47, 0.1);
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(33, 33, 33, 0.98) !important;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(211, 47, 47, 0.3);
}

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.5) !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='%23D32F2F' 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-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

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

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

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

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

/* Hero Section */
.position-relative.vh-100 {
  position: relative;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
}

.position-relative.vh-100::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.7) 0%, rgba(33, 33, 33, 0.9) 100%);
  z-index: 1;
}

.position-absolute.top-0.start-0.w-100.h-100 {
  filter: brightness(0.6) contrast(1.2);
  object-position: center;
}

.object-fit-cover {
  object-fit: cover;
}

.position-relative.vh-100 .container {
  position: relative;
  z-index: 2;
}

.position-relative.vh-100 .display-1 {
  animation: fadeInUp 1s ease-out;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  color: #FFFFFF !important;
}

.position-relative.vh-100 .fs-3,
.position-relative.vh-100 .fs-5 {
  animation: fadeInUp 1.2s ease-out;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  color: #FFFFFF !important;
}

/* Buttons */
.btn {
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

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

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

.btn-lg {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border: 2px solid var(--primary-color) !important;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
}

.btn-lg:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4) !important;
  color: #FFFFFF !important;
}

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

.btn-outline-secondary:hover {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(33, 33, 33, 0.3) !important;
}

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

.btn-outline-dark:hover {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
}

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

.btn-dark:hover {
  background: var(--bg-dark) !important;
  border-color: var(--bg-dark) !important;
  color: #FFFFFF !important;
}

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.85rem !important;
}

/* Cards */
.card {
  border-radius: 8px;
  transition: var(--transition);
  border: none !important;
  overflow: hidden;
}

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

.card-body {
  background: #FFFFFF;
}

.card-header {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color) !important;
}

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

.card-text {
  color: #616161 !important;
}

.card.border-0 {
  background: #FFFFFF;
}

/* Icons */
.bi {
  color: var(--primary-color) !important;
  font-size: 2.5rem;
  transition: var(--transition);
}

.card:hover .bi {
  transform: scale(1.1) rotate(5deg);
}

.bi-lightning-charge-fill,
.bi-trophy-fill,
.bi-people-fill,
.bi-fire,
.bi-graph-up,
.bi-shield-check,
.bi-egg-fried {
  animation: pulse 2s infinite;
}

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

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

section.bg-white {
  background: #FFFFFF !important;
}

section.py-5 {
  background: var(--bg-light) !important;
}

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

.img-fluid:hover {
  transform: scale(1.02);
}

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

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

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

/* Lists */
.list-unstyled li {
  padding: 0.5rem 0;
  color: #616161 !important;
  transition: var(--transition);
}

.list-unstyled li:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.bi-check-circle-fill {
  color: #4CAF50 !important;
  font-size: 1.2rem !important;
}

/* Badges */
.badge {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: 4px;
}

.bg-success {
  background: #4CAF50 !important;
}

.bg-warning {
  background: #FFC107 !important;
}

.pulsing-badge {
  animation: pulse 2s infinite;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  background: #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.2rem rgba(211, 47, 47, 0.25) !important;
  background: #FFFFFF !important;
}

.form-control.bg-dark {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  border-color: #424242 !important;
}

.form-control.bg-dark:focus {
  background: var(--bg-dark) !important;
  color: #FFFFFF !important;
}

.form-control::placeholder {
  color: #9E9E9E !important;
}

.form-floating > label {
  color: #757575 !important;
}

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

.form-check-input {
  border: 2px solid #E0E0E0 !important;
  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.2rem rgba(211, 47, 47, 0.25) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
}

.invalid-feedback {
  color: #F44336 !important;
  font-weight: 500;
}

.needs-validation .form-control:invalid {
  border-color: #F44336 !important;
}

.needs-validation .form-control:valid {
  border-color: #4CAF50 !important;
}

/* Alerts */
.alert {
  border-radius: 4px;
  border: none;
  padding: 1rem 1.5rem;
  animation: slideDown 0.5s ease-out;
}

.alert-success {
  background: #E8F5E9 !important;
  color: #2E7D32 !important;
  border-left: 4px solid #4CAF50 !important;
}

/* Modal */
.modal-content {
  border-radius: 8px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 3px solid var(--primary-color) !important;
  padding: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

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

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* Tables */
.table {
  color: var(--text-dark) !important;
}

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

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

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

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

/* Footer */
footer {
  background: var(--secondary-color) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: var(--transition);
}

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

footer .bi {
  font-size: 1.5rem !important;
  margin: 0 0.5rem;
}

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

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Schedule Section */
.schedule-day {
  background: var(--secondary-color) !important;
  color: #FFFFFF !important;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.schedule-day:hover {
  background: var(--primary-color) !important;
  cursor: pointer;
}

.schedule-content {
  background: #FFFFFF;
  padding: 1.5rem;
  border: 2px solid #E0E0E0;
  border-radius: 0 0 4px 4px;
  min-height: 200px;
}

.schedule-day-content {
  display: none;
}

.schedule-day-content.active {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

/* Filter Buttons */
.filter-btn {
  margin: 0.25rem;
  transition: var(--transition);
}

.filter-btn.active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
  border-color: var(--primary-color) !important;
}

/* Class Items */
.class-item {
  transition: var(--transition);
  opacity: 1;
}

.class-item.hidden {
  display: none;
  opacity: 0;
}

/* Carousel */
.carousel-indicators button {
  background-color: var(--primary-color) !important;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(211, 47, 47, 0.8);
  padding: 2rem;
  border-radius: 50%;
}

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

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Utility Classes */
.opacity-25 {
  opacity: 0.25 !important;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    gap: 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .display-1 {
    font-size: 3rem !important;
  }
  
  .display-3 {
    font-size: 2.5rem !important;
  }
  
  .display-4 {
    font-size: 2rem !important;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .vh-100 {
    min-height: 100vh;
  }
  
  .bi {
    font-size: 2rem !important;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }
  
  .container-fluid {
    padding: 0 1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .btn-lg {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

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