/********** Template CSS **********/
:root {
  --primary: #8B0000;
  --secondary: #2C1810;
  --accent: #DC143C;
  --accent-hover: #B22222;
  --dark: #0A0A0A;
  --darker: #050505;
  --dark-gray: #1A1A1A;
  --medium-gray: #2D2D2D;
  --light-gray: #404040;
  --text-light: #E0E0E0;
  --text-white: #FFFFFF;
  --text-muted: #B0B0B0;
  --background-dark: #0F0F0F;
  --background-darker: #080808;
  --border-color: #333333;
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-darker: 0 8px 30px rgba(0, 0, 0, 0.7);
  --gradient-primary: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
  --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #2C1810 100%);
  --header-height: 80px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-white);
  margin-bottom: 1rem;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  font-weight: 500;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: 5px;
  padding: 12px 30px;
  font-size: 14px;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: var(--text-white);
  box-shadow: var(--shadow-dark);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-darker);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Spinner */
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
  background-color: var(--background-darker) !important;
}

#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

.spinner-border {
  color: var(--primary) !important;
}

/* Header */
.site-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(10, 10, 10, 0.98);
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  position: relative;
  display: flex;
  align-items: center;
}

.site-logo span {
  color: var(--primary);
  margin-right: 8px;
  font-size: 28px;
}

.site-logo:hover {
  color: var(--text-white);
  text-decoration: none;
}

.navbar-nav {
  margin-left: auto;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 8px 20px !important;
  transition: var(--transition);
  position: relative;
  margin: 0 5px;
  border-radius: 5px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary) !important;
  background: rgba(139, 0, 0, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border: 1px solid var(--border-color);
  color: var(--text-light);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-dark);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 600px;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image-container {
  position: relative;
  z-index: 2;
}

.hero-image {
  border-radius: 15px;
  box-shadow: var(--shadow-darker);
  position: relative;
  z-index: 2;
  border: 2px solid var(--border-color);
}

.hero-pattern {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: -30px;
  left: -30px;
  z-index: -1;
  opacity: 0.3;
}

/* Section Titles */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Advantages Section */
.advantages-section {
  padding: 120px 0;
  background: var(--background-darker);
  position: relative;
}

.advantages-content {
  position: relative;
  z-index: 2;
}

.advantages-image-container {
  position: relative;
  margin-bottom: 30px;
}

.advantages-image {
  border-radius: 15px;
  box-shadow: var(--shadow-darker);
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.advantage-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background: var(--dark-gray);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-darker);
  border-color: var(--primary);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  box-shadow: var(--shadow-dark);
}

.advantage-icon span {
  color: var(--text-white);
  font-size: 1.8rem;
}

.advantage-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-white);
}

.advantage-content p {
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Programs Section */
.programs-section {
  padding: 120px 0;
  background: var(--background-dark);
  position: relative;
}

.program-card {
  background: var(--dark-gray);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
  height: 100%;
  position: relative;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-darker);
  border-color: var(--primary);
}

.program-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: var(--shadow-dark);
}

.program-icon span {
  color: var(--text-white);
  font-size: 2.5rem;
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-white);
}

.program-card p {
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-muted);
}

.program-features {
  list-style: none;
  padding: 0;
}

.program-features li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-light);
}

.program-features li span {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* About Section */
.about-section {
  padding: 120px 0;
  background: var(--background-darker);
  position: relative;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.about-content .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.about-content p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-light);
}

.feature-item span:first-child {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.about-image-container {
  position: relative;
}
@media (max-width: 767.98px) {
  .about-image-container {
    display: none;
  }
}

.about-image {
  border-radius: 15px;
  box-shadow: var(--shadow-darker);
  border: 2px solid var(--border-color);
}

/* Reviews Section */
.reviews-section {
  padding: 120px 0;
  background: var(--background-dark);
  position: relative;
}

.review-card {
  background: var(--dark-gray);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: var(--shadow-dark);
  position: relative;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--border-color);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-darker);
  border-color: var(--primary);
}

.review-stars {
  display: flex;
  margin-bottom: 20px;
}

.review-stars .material-icons {
  color: var(--primary);
  font-size: 1.2rem;
  margin-right: 2px;
}

.review-text {
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 25px;
  color: var(--text-light);
}

.review-author {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.review-author span:first-child {
  color: var(--primary);
  margin-right: 8px;
}

/* Plans Section */
.plans-section {
  padding: 120px 0;
  background: var(--background-darker);
  position: relative;
}

.plan-card {
  background: var(--dark-gray);
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: var(--shadow-dark);
  transition: var(--transition);
  height: 100%;
  position: relative;
  border: 1px solid var(--border-color);
  text-align: center;
}

.plan-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  background: var(--medium-gray);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-darker);
  border-color: var(--primary);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.plan-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-white);
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.plan-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--text-light);
}

.plan-features li span {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.plan-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-primary);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

.plan-button:hover {
  background: var(--accent-hover);
  color: var(--text-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-darker);
}

.plan-button.featured {
  background: var(--accent);
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background: var(--background-dark);
  position: relative;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 25px;
  background: var(--dark-gray);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-dark);
}

.contact-item span:first-child {
  color: var(--primary);
  font-size: 2rem;
  margin-right: 20px;
  min-width: 40px;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
}

.contact-form {
  background: var(--dark-gray);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-color);
}

.form-control {
  background: var(--background-dark);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 15px;
  border-radius: 8px;
  transition: var(--transition);
}

.form-control:focus {
  background: var(--background-dark);
  border-color: var(--primary);
  color: var(--text-light);
  box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--background-darker);
  padding: 80px 0 30px;
  position: relative;
  border-top: 1px solid var(--border-color);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-brand {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand span {
  color: var(--primary);
  margin-right: 10px;
  font-size: 32px;
}

.footer p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer h5 {
  color: var(--text-white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom .row {
  align-items: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
}

.footer-bottom .footer-links {
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom .footer-links li {
  margin: 0;
}

.footer-bottom .footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.footer-bottom .footer-links a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  padding-left: 0;
}

/* Responsive footer bottom */
@media (max-width: 767.98px) {
  .hero-image {
    display: none;
  }
  .footer-bottom .row {
    text-align: center;
  }
  
  .footer-bottom .col-md-6:first-child {
    margin-bottom: 15px;
  }
  
  .footer-bottom .footer-links {
    justify-content: center;
    gap: 15px;
  }
  
  .footer-bottom .footer-links a {
    font-size: 0.85rem;
  }
}

/* Enhanced Responsive Design */
/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-title {
    font-size: 3.2rem;
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 100px 0;
  }
  
  .plan-card.featured {
    transform: scale(1.02);
  }
  
  .plan-card.featured:hover {
    transform: scale(1.02) translateY(-10px);
  }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 80px 0;
  }
  
  .hero-section {
    padding: 140px 0 80px;
  }
  
  .plan-card.featured {
    transform: scale(1);
    margin-top: 30px;
  }
  
  .plan-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .advantage-item {
    flex-direction: column;
    text-align: center;
  }
  
  .advantage-icon {
    margin: 0 auto 15px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-item span:first-child {
    margin: 0 auto 15px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding: 120px 0 60px;
    min-height: 80vh;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .plan-price {
    font-size: 2.5rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .footer {
    padding: 60px 0 20px;
  }
  
  .footer-brand {
    font-size: 24px;
  }
  
  .footer-brand span {
    font-size: 28px;
  }
}

/* Mobile Devices (up to 575.98px) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 50px 0;
  }
  
  .hero-section {
    padding: 100px 0 50px;
    min-height: 70vh;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 15px 20px;
  }
  
  .advantage-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .advantage-icon {
    margin: 0 auto 15px;
    width: 50px;
    height: 50px;
  }
  
  .advantage-icon span {
    font-size: 1.5rem;
  }
  
  .advantage-content h3 {
    font-size: 1.1rem;
  }
  
  .program-card {
    padding: 30px 20px;
  }
  
  .program-icon {
    width: 60px;
    height: 60px;
  }
  
  .program-icon span {
    font-size: 2rem;
  }
  
  .program-card h3 {
    font-size: 1.3rem;
  }
  
  .plan-card {
    padding: 30px 20px;
  }
  
  .plan-card h3 {
    font-size: 1.5rem;
  }
  
  .plan-price {
    font-size: 2.2rem;
  }
  
  .plan-features li {
    font-size: 0.9rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .contact-item span:first-child {
    margin: 0 auto 15px;
    font-size: 1.5rem;
  }
  
  .contact-form {
    padding: 25px 15px;
  }
  
  .form-control {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 50px 0 20px;
  }
  
  .footer-brand {
    font-size: 22px;
    justify-content: center;
  }
  
  .footer-brand span {
    font-size: 26px;
  }
  
  .footer h5 {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
  }
}

/* Very Small Devices (up to 375px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 90px 0 40px;
  }
  
  .hero-buttons .btn {
    max-width: 250px;
    padding: 12px 15px;
    font-size: 13px;
  }
  
  .advantage-item {
    padding: 15px;
  }
  
  .program-card {
    padding: 25px 15px;
  }
  
  .plan-card {
    padding: 25px 15px;
  }
  
  .contact-form {
    padding: 20px 10px;
  }
  
  .footer-brand {
    font-size: 20px;
  }
  
  .footer-brand span {
    font-size: 24px;
  }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 60vh;
    padding: 100px 0 50px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 40px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .advantages-image,
  .about-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  .site-header,
  .footer,
  .hero-buttons,
  .contact-form {
    display: none;
  }
  
  .hero-section {
    padding: 20px 0;
    min-height: auto;
  }
  
  .advantages-section,
  .programs-section,
  .about-section,
  .reviews-section,
  .plans-section,
  .contact-section {
    padding: 20px 0;
  }
  
  body {
    background: white;
    color: black;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--text-white);
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Loading animation */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Additional Mobile Enhancements */
.mobile-fonts {
  font-size: 0.9rem;
}

.mobile-fonts h1 {
  font-size: 1.8rem;
}

.mobile-fonts h2 {
  font-size: 1.6rem;
}

.mobile-fonts h3 {
  font-size: 1.4rem;
}

/* Touch feedback styles */
.touch-active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Enhanced hover effects for mobile */
@media (hover: none) and (pointer: coarse) {
  .advantage-item:hover,
  .program-card:hover,
  .review-card:hover,
  .plan-card:hover,
  .contact-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* Improved focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Form validation styles */
.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: #fff;
  z-index: 9999;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-weight: 500;
}

.notification-success {
  background-color: #28a745;
}

.notification-error {
  background-color: #dc3545;
}

/* Loading button styles */
.btn.loading {
  position: relative;
  overflow: hidden;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Form focus effects */
.form-group.focused .form-control {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

/* Character counter styles */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 5px;
}

.char-counter.text-warning {
  color: #ffc107;
}

.char-counter.text-danger {
  color: #dc3545;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .success-icon .material-icons {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --background-dark: #000000;
    --background-darker: #000000;
    --dark-gray: #0A0A0A;
    --medium-gray: #1A1A1A;
  }
}

/* Container improvements for better responsive behavior */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Improved spacing for mobile */
@media (max-width: 767.98px) {
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col,
  .col-1,
  .col-2,
  .col-3,
  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-9,
  .col-10,
  .col-11,
  .col-12 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Better text readability on mobile */
@media (max-width: 575.98px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  p {
    font-size: 0.95rem;
  }
}

/* Improved button sizing for touch devices */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  .navbar-toggler {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Better form controls on mobile */
@media (max-width: 575.98px) {
  .form-control {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  input[type="email"],
  input[type="tel"],
  input[type="text"] {
    font-size: 16px;
  }
}

/* Improved navigation for mobile */
@media (max-width: 991.98px) {
  .site-header {
    height: 70px;
  }
  
  .navbar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .navbar-nav {
    margin-top: 0;
    width: 100%;
  }
  
  .nav-link {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Bootstrap 5 Mobile Menu Styles */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding: 20px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-darker);
    z-index: 999;
  }
  
  .navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
    margin-left: auto;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
    outline: none;
  }
  
  .navbar-toggler:hover {
    background: rgba(139, 0, 0, 0.1);
  }
  
  .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(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Animation for mobile menu */
  .navbar-collapse.collapsing {
    transition: height 0.35s ease;
  }
  
  .navbar-collapse.show {
    display: block;
  }
  
  /* Better spacing for mobile nav items */
  .navbar-nav .nav-item {
    margin: 0;
  }
  
  .navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 15px 20px !important;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--primary) !important;
    background: rgba(139, 0, 0, 0.1);
    padding-left: 25px !important;
  }
  
  .navbar-nav .nav-link::after {
    display: none;
  }
  
  /* Container adjustments for mobile */
  .navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure proper header height */
  .site-header.scrolled {
    height: 70px;
  }
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Additional Mobile Menu Positioning Fixes */
@media (max-width: 991.98px) {
  /* Ensure header has proper positioning context */
  .site-header {
    position: relative;
  }
  
  /* Fix navbar container */
  .navbar .container-fluid {
    position: relative;
    width: 100%;
    padding: 0 15px;
  }
  
  /* Ensure collapse menu is properly positioned */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
    padding: 20px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-darker);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  /* Improve navbar layout */
  .navbar {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* Better toggler positioning */
  .navbar-toggler {
    order: 2;
    margin-left: auto;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    transition: var(--transition);
    background: transparent;
  }
  
  .navbar-toggler:hover {
    background: rgba(139, 0, 0, 0.1);
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
    outline: none;
  }
  
  /* Logo positioning */
  .site-logo {
    order: 1;
    margin-right: auto;
  }
  
  /* Navbar nav improvements */
  .navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .navbar-nav .nav-item {
    width: 100%;
    margin: 0;
  }
  
  .navbar-nav .nav-link {
    width: 100%;
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    border-radius: 0;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--primary) !important;
    background: rgba(139, 0, 0, 0.1);
    padding-left: 25px !important;
  }
  
  /* Remove justify-content-end on mobile */
  .navbar-collapse.justify-content-end {
    justify-content: flex-start !important;
  }
  
  /* Ensure proper spacing */
  .navbar-collapse .navbar-nav {
    margin: 0;
    padding: 0;
  }
}

/* Extra small devices */
@media (max-width: 575.98px) {
  .navbar-collapse {
    max-height: 70vh;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 15px !important;
    font-size: 0.95rem;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    padding-left: 20px !important;
  }
}

/* Better card layouts on mobile */
@media (max-width: 767.98px) {
  .advantage-item,
  .program-card,
  .review-card,
  .plan-card,
  .contact-item {
    margin-bottom: 20px;
  }
}

/* Improved spacing for sections on mobile */
@media (max-width: 575.98px) {
  .section-title {
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    margin-bottom: 2rem;
  }
  
  .hero-title {
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    margin-bottom: 2rem;
  }
}