/* Shadow Crimson Architecture Studio - Custom Styles */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #e63946;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #2a2a2a;
  --shadow-color: rgba(230, 57, 70, 0.3);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6, .display-1, .display-3, .display-4, .display-5 {
  font-weight: 700 !important;
  color: var(--white) !important;
  letter-spacing: -0.5px;
}

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

p {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Navbar */
.navbar {
  background-color: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0 !important;
  box-shadow: 0 2px 20px rgba(230, 57, 70, 0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(26, 26, 26, 0.98) !important;
  box-shadow: 0 4px 30px rgba(230, 57, 70, 0.3);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-brand:hover::after {
  width: 100%;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  position: relative;
  transition: var(--transition);
}

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

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

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

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

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 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='%23e63946' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  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-color: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

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

.btn-primary {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
  background-color: #d32e3d !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

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

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

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

/* Hero Section */
.position-relative.overflow-hidden {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
  min-height: 100vh;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(230, 57, 70, 0.03) 2px, rgba(230, 57, 70, 0.03) 4px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(230, 57, 70, 0.03) 2px, rgba(230, 57, 70, 0.03) 4px);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.position-absolute.w-100.h-100 {
  pointer-events: none;
}

/* Cards */
.card {
  background-color: rgba(42, 42, 42, 0.95) !important;
  border: 1px solid rgba(230, 57, 70, 0.2) !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color) !important;
  box-shadow: 0 15px 40px rgba(230, 57, 70, 0.3) !important;
}

.card-body {
  background-color: transparent !important;
}

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

.card-text {
  color: rgba(255, 255, 255, 0.85) !important;
}

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

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

.class-card {
  position: relative;
  overflow: hidden;
}

.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-size: 0.85rem !important;
}

/* Instructor Cards */
.instructor-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
}

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

.instructor-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.instructor-overlay {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95), transparent);
  transition: var(--transition);
}

.instructor-card:hover .instructor-overlay {
  background: linear-gradient(to top, rgba(230, 57, 70, 0.9), rgba(26, 26, 26, 0.7));
}

.instructor-bio {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.instructor-card:hover .instructor-bio {
  opacity: 1;
  transform: translateY(0);
}

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

section:nth-child(even) {
  background-color: rgba(42, 42, 42, 0.5);
}

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

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

/* Forms */
.form-control,
.form-select {
  background-color: rgba(42, 42, 42, 0.8) !important;
  border: 2px solid rgba(230, 57, 70, 0.3) !important;
  color: var(--white) !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  background-color: rgba(42, 42, 42, 0.95) !important;
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25) !important;
  color: var(--white) !important;
}

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

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

.form-check-input {
  background-color: rgba(42, 42, 42, 0.8) !important;
  border: 2px solid rgba(230, 57, 70, 0.3) !important;
}

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

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

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--secondary-color), rgba(230, 57, 70, 0.3));
}

.timeline .d-flex {
  position: relative;
  margin-bottom: 2rem;
  animation: fadeInLeft 0.6s ease-out;
}

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

.rounded-circle.flex-shrink-0 {
  width: 60px !important;
  height: 60px !important;
  background-color: var(--secondary-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--primary-color), 0 0 0 8px var(--secondary-color);
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.3);
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.7);
}

.carousel-caption {
  background: linear-gradient(to top, rgba(26, 26, 26, 0.9), transparent);
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 3rem 2rem !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--secondary-color);
  border-radius: 50%;
  padding: 2rem;
}

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

/* Accordion */
.accordion-item {
  background-color: rgba(42, 42, 42, 0.8) !important;
  border: 1px solid rgba(230, 57, 70, 0.2) !important;
  margin-bottom: 1rem !important;
  border-radius: 10px !important;
  overflow: hidden;
}

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25) !important;
}

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

.accordion-body {
  background-color: rgba(42, 42, 42, 0.6) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 1.5rem !important;
}

/* Modal */
.modal-content {
  background-color: var(--dark-gray) !important;
  border: 2px solid rgba(230, 57, 70, 0.3) !important;
  border-radius: 15px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid rgba(230, 57, 70, 0.3) !important;
  background-color: rgba(230, 57, 70, 0.1) !important;
}

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

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

.modal-footer {
  border-top: 1px solid rgba(230, 57, 70, 0.3) !important;
}

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

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

/* Filter Buttons */
.filter-btn {
  background-color: rgba(42, 42, 42, 0.8) !important;
  color: var(--white) !important;
  border: 2px solid rgba(230, 57, 70, 0.3) !important;
  padding: 0.5rem 1.5rem !important;
  margin: 0.25rem !important;
  border-radius: 25px !important;
  transition: var(--transition) !important;
}

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

/* Icons */
.bi {
  color: var(--secondary-color) !important;
}

[class^="bi-"]::before,
[class*=" bi-"]::before {
  vertical-align: middle;
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.2) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(230, 57, 70, 0.3) !important;
}

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

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

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

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

/* Footer */
footer {
  background-color: rgba(26, 26, 26, 0.98) !important;
  border-top: 3px solid var(--secondary-color);
}

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

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

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

.text-light {
  color: rgba(255, 255, 255, 0.9) !important;
}

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

.list-unstyled li:hover {
  transform: translateX(5px);
}

/* Utilities */
.text-decoration-none {
  text-decoration: none !important;
}

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

.fst-italic {
  font-style: italic !important;
}

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

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

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

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

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

.pulse {
  animation: pulse 2s infinite;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #d32e3d;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(26, 26, 26, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 57, 70, 0.3);
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
  }

  .display-1 {
    font-size: 3rem !important;
  }

  .display-3 {
    font-size: 2.5rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  section {
    padding: 3rem 0;
  }

  .timeline::before {
    left: 30px;
  }

  .carousel-item {
    height: 350px;
  }

  .btn-lg {
    padding: 0.75rem 2rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }

  .display-3 {
    font-size: 2rem !important;
  }

  .lead {
    font-size: 1.1rem !important;
  }

  .carousel-item {
    height: 300px;
  }

  .carousel-caption {
    padding: 2rem 1rem !important;
  }

  .instructor-card {
    height: 350px;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 575.98px) {
  .display-1 {
    font-size: 2rem !important;
  }

  .h1, h1 {
    font-size: 2rem !important;
  }

  .h2, h2 {
    font-size: 1.75rem !important;
  }

  .carousel-item {
    height: 250px;
  }

  .card-img-top {
    height: 200px;
  }

  .instructor-card {
    height: 300px;
  }

  section {
    padding: 2rem 0;
  }
}

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

/* Focus States */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Loading Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
}

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

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

/* Background Colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

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

/* Border Colors */
.border-primary {
  border-color: var(--primary-color) !important;
}

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

/* Container Fluid */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Position Sticky */
.position-sticky {
  position: sticky !important;
  top: 80px;
}

/* Navigation Sidebar */
.nav {
  flex-direction: column;
}

.nav .nav-link {
  padding: 0.75rem 1rem !important;
  border-left: 3px solid transparent;
}

.nav .nav-link.active {
  border-left-color: var(--secondary-color);
  background-color: rgba(230, 57, 70, 0.1);
}

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

/* Social Media Icons */
.bi-facebook,
.bi-instagram,
.bi-twitter-x,
.bi-youtube {
  transition: var(--transition);
}

.bi-facebook:hover {
  color: #1877f2 !important;
}

.bi-instagram:hover {
  color: #e4405f !important;
}

.bi-twitter-x:hover {
  color: #1da1f2 !important;
}

.bi-youtube:hover {
  color: #ff0000 !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--white) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Divider */
.divider {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
  margin: 2rem 0;
}

/* Feature Box */
.feature-box {
  padding: 2rem;
  background: rgba(42, 42, 42, 0.5);
  border-radius: 15px;
  border: 1px solid rgba(230, 57, 70, 0.2);
  transition: var(--transition);
}

.feature-box:hover {
  background: rgba(230, 57, 70, 0.1);
  border-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Stats Counter */
.stats-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  line-height: 1;
}

/* Quote Box */
.quote-box {
  border-left: 4px solid var(--secondary-color);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  body {
    background-color: white !important;
    color: black !important;
  }
}