:root {
  --primary-color: #0066cc;
  --primary-dark: #004c99;
  --secondary-color: #00a859;
  --accent-color: #00d4ff;
  --text-dark: #1a1a1a;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
}

/* AI Image Placeholder Styling */
ai-img {
  display: block;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
}

ai-img::before {
  content: attr(alt);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  max-width: 80%;
}

ai-img::after {
  content: '\F38F';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.3;
}

ai-img.rounded-circle {
  border-radius: 50%;
}

ai-img.card-img-top {
  border-radius: 8px 8px 0 0;
}

ai-img.rounded {
  border-radius: 8px;
}

/* Medical Theme Color Scheme */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

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

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand ai-img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover ai-img {
  transform: scale(1.05);
}

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

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

/* Hero Carousel */
.hero-carousel .carousel-item {
  position: relative;
  height: 600px;
}

.hero-carousel .carousel-item ai-img {
  height: 100%;
  object-fit: cover;
}

.hero-carousel .carousel-caption {
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
  left: 10%;
  right: 10%;
  text-align: left;
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-carousel .carousel-caption h1,
.hero-carousel .carousel-caption h2 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Cards */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 102, 204, 0.15);
}

.product-category-card,
.product-card {
  height: 100%;
}

.product-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.solution-card {
  border-left: 4px solid var(--primary-color);
}

/* Stats Section */
.stat-card {
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-card h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
}

/* Certifications */
.cert-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cert-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
}

/* Forms */
.inquiry-form .form-control,
.inquiry-form .form-select {
  border-radius: 8px;
  border: 2px solid var(--border-color);
  padding: 0.75rem;
  transition: border-color 0.3s ease;
}

.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

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

/* Floating Buttons */
.floating-buttons .btn {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-buttons .btn:hover {
  transform: scale(1.1);
}

#backToTop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#backToTop.visible {
  opacity: 1;
}

/* Footer */
footer h5 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer a {
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.25rem 0;
}

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

/* Page Banner */
.page-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* Product Filter */
.product-filter .form-select {
  border-radius: 8px;
  border: 2px solid var(--border-color);
  padding: 0.6rem;
  font-weight: 500;
}

/* 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(--accent-color));
  transform: translateX(-50%);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

/* Author Card */
.author-card {
  border-left: 4px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.author-card:hover {
  transform: translateX(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: 400px;
  }

  .hero-carousel .carousel-caption {
    bottom: 20%;
    padding: 1rem;
  }

  .hero-carousel .carousel-caption h1,
  .hero-carousel .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .hero-carousel .carousel-caption p {
    font-size: 0.9rem;
  }

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

  .timeline-item::before {
    left: 20px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.shadow-sm-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
