:root {
  --primary-color: #00B5B8;
  --cta-color: #FF0000;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --success-color: #28a745;
  --border-radius: 1rem;
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Bootstrap overrides */
.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #009a9d;
  border-color: #009a9d;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-cta {
  background-color: var(--cta-color);
  border-color: var(--cta-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: #e60000;
  border-color: #e60000;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Typography */
.display-4,
.display-5 {
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem !important;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #008b8e 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  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 width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 2rem !important;
  box-shadow: var(--shadow-lg);
}

.min-vh-75 {
  min-height: 75vh;
}

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

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

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

.animate-fade-in {
  animation: fadeIn 1s ease-out;
  animation-fill-mode: both;
}

.animate-slide-in {
  animation: slideIn 1s ease-out 0.5s;
  animation-fill-mode: both;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-icon-lg {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #008b8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 2rem;
}

/* Pricing Cards */
.pricing-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--cta-color);
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cta-color);
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 0 0 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

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

/* Download Cards */
.download-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  height: 100%;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.download-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), #008b8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-size: 3rem;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  font-weight: bold;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Carousel */
.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-indicators button {
  background-color: var(--primary-color);
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--border-radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  background-color: white;
  border: none;
  font-weight: 600;
  color: var(--text-dark);
  padding: 1.5rem;
}

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

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 181, 184, 0.25);
}

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

/* Forms */
.form-control {
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 181, 184, 0.25);
}

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

/* Modal */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color), #008b8e);
  color: white;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Toast */
.toast {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* Sections */
section {
  scroll-margin-top: 100px;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #008b8e 100%) !important;
}

/* Footer */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    text-align: center;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature-card,
  .download-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .pricing-card.popular {
    transform: none;
    margin-bottom: 2rem;
  }
  
  .carousel-item img {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .d-flex.flex-column.flex-sm-row {
    flex-direction: column !important;
  }
  
  .pricing-card {
    margin-bottom: 2rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .feature-card,
  .pricing-card,
  .download-card,
  .testimonial-card {
    border: 2px solid var(--text-dark);
  }
}