/* Architecture Studio Theme - Power Red & Iron Gray */

:root {
  --primary-color: #D32F2F;
  --secondary-color: #424242;
  --light-gray: #F5F5F5;
  --dark-gray: #212121;
  --accent-red: #B71C1C;
  --text-light: #FFFFFF;
  --text-dark: #212121;
  --shadow: rgba(0, 0, 0, 0.15);
  --shadow-lg: rgba(0, 0, 0, 0.3);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-gray) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 20px var(--shadow);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px var(--shadow-lg);
}

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

.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: 600;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--text-light) !important;
  background-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text-light) !important;
  background-color: var(--primary-color) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.navbar-toggler {
  border: 2px solid 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='%23D32F2F' 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%, var(--dark-gray) 50%, var(--secondary-color) 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::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 1000 1000"><rect x="0" y="0" width="100" height="100" fill="%23D32F2F" opacity="0.03"/><rect x="100" y="100" width="100" height="100" fill="%23D32F2F" opacity="0.03"/></svg>');
  opacity: 0.1;
}

.hero-section .position-absolute {
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

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

.hero-section .display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 2rem !important;
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-section .lead {
  font-size: clamp(1.2rem, 3vw, 1.8rem) !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.6 !important;
  margin-bottom: 3rem !important;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Buttons */
.btn {
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  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 {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary,
.btn.bg-primary,
.btn[style*="background"] {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn.bg-primary:hover {
  background-color: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4) !important;
}

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

.btn-secondary:hover,
.btn-dark:hover {
  background-color: var(--dark-gray) !important;
  border-color: var(--dark-gray) !important;
  color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(66, 66, 66, 0.4) !important;
}

.btn-outline-light {
  border-color: 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-color) !important;
  border-color: var(--text-light) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3) !important;
}

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

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

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

.btn-outline-danger:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

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

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

/* Animate Bounce */
.animate-bounce {
  animation: bounce 2s infinite;
}

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

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

/* Cards */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: all 0.4s ease !important;
  background-color: var(--text-light);
}

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

.card-img-top {
  transition: all 0.4s ease;
  height: 250px;
  object-fit: cover;
}

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

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

.card-header {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
  font-weight: 700 !important;
  padding: 1.5rem !important;
  border: none !important;
}

/* Shadows */
.shadow {
  box-shadow: 0 5px 15px var(--shadow) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px var(--shadow-lg) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px var(--shadow) !important;
}

/* Badges */
.badge {
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.bg-primary,
.bg-primary {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
}

.badge.bg-secondary,
.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: var(--text-light) !important;
}

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

.bg-warning {
  background-color: #FFA726 !important;
  color: var(--text-dark) !important;
}

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

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

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

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

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

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

.text-success {
  color: #4CAF50 !important;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-check-circle-fill {
  color: var(--primary-color) !important;
}

.bi-star-fill {
  color: #FFC107 !important;
}

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

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

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

/* Parallax Section */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 400px;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(66, 66, 66, 0.9), rgba(33, 33, 33, 0.9));
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 2rem;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid var(--text-light);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  box-shadow: 0 0 0 4px var(--primary-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(211, 47, 47, 0.1);
  }
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #E0E0E0 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  background-color: var(--text-light) !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.15) !important;
  background-color: var(--text-light) !important;
}

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

.form-select-lg {
  padding: 1rem 1.5rem !important;
  font-size: 1.1rem !important;
}

.form-check-input {
  width: 1.5rem !important;
  height: 1.5rem !important;
  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.25rem rgba(211, 47, 47, 0.15) !important;
}

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

/* Input Group */
.input-group .form-control {
  border-right: none !important;
}

.input-group .btn {
  border-left: none !important;
}

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

.modal-header {
  background: linear-gradient(135deg, var(--secondary-color), var(--dark-gray)) !important;
  color: var(--text-light) !important;
  border: none !important;
  padding: 1.5rem 2rem !important;
}

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

.modal-body {
  padding: 2rem !important;
  background-color: var(--text-light);
}

.modal-footer {
  border: none !important;
  padding: 1.5rem 2rem !important;
  background-color: var(--light-gray);
}

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

.btn-close:hover,
.btn-close-white:hover {
  opacity: 0.7 !important;
}

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

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

.accordion-button {
  background-color: var(--light-gray) !important;
  color: var(--text-dark) !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(--text-light) !important;
  box-shadow: none !important;
}

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

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

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

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

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

.carousel-control-prev,
.carousel-control-next {
  width: 5% !important;
  opacity: 0.8 !important;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 0.75rem;
}

/* Floating Chat Button */
.position-fixed {
  z-index: 1000;
}

.position-fixed.bottom-0.end-0 {
  bottom: 2rem !important;
  right: 2rem !important;
}

.position-fixed .btn {
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px var(--shadow-lg) !important;
  animation: float 3s ease-in-out infinite;
}

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

/* Ratio (Video Embeds) */
.ratio {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

/* List Styles */
.list-unstyled {
  padding-left: 0 !important;
  list-style: none !important;
}

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

/* Links */
a.text-decoration-none {
  color: var(--text-dark);
}

a.text-decoration-none:hover {
  color: var(--primary-color) !important;
}

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

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

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

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--secondary-color), var(--dark-gray));
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: var(--text-light) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.3s ease;
}

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

footer .bi {
  color: var(--primary-color);
}

/* Display Classes */
.display-1 {
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  font-weight: 900 !important;
}

.display-2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem) !important;
  font-weight: 800 !important;
}

.display-3 {
  font-size: clamp(2rem, 4vw, 4rem) !important;
  font-weight: 800 !important;
}

.display-4 {
  font-size: clamp(1.8rem, 3.5vw, 3.5rem) !important;
  font-weight: 700 !important;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 3rem) !important;
  font-weight: 700 !important;
}

.display-6 {
  font-size: clamp(1.3rem, 2.5vw, 2.5rem) !important;
  font-weight: 700 !important;
}

/* Opacity Classes */
.opacity-75 {
  opacity: 0.75 !important;
}

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

.opacity-25 {
  opacity: 0.25 !important;
}

/* Spacing Utilities */
.gap-1 {
  gap: 0.25rem !important;
}

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

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

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

/* Border Utilities */
.border {
  border: 1px solid #E0E0E0 !important;
}

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

.border-end {
  border-right: 1px solid #E0E0E0 !important;
}

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

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

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Coach Card (Custom) */
.coach-card {
  transition: all 0.3s ease;
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px var(--shadow);
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top:hover {
  background-color: var(--accent-red);
  transform: translateY(-5px);
}

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(33, 33, 33, 0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    box-shadow: 0 5px 20px var(--shadow);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0;
  }
  
  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 60px;
  }
  
  section {
    padding: 3rem 0;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .modal-body {
    padding: 1.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .position-fixed.bottom-0.end-0 {
    bottom: 1rem !important;
    right: 1rem !important;
  }
}

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

/* 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 Styles for Accessibility */
*:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

button:focus,
.btn:focus {
  outline: 2px solid var(--primary-color) !important;
  outline-offset: 2px;
}

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

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

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

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

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

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