/* Custom Component Styles */

/* Hero Section */
.hero-overlay {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.9) 0%, rgba(16, 185, 129, 0.8) 100%);
}

/* Stats Counter */
.stat-card {
  @apply bg-white rounded-2xl p-8 shadow-lg text-center transition-all duration-300 hover:shadow-2xl hover:scale-105;
}

.stat-number {
  @apply text-5xl font-bold text-primary-600 mb-2;
}

/* Service Card */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.1);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #102a43 0%, #243b53 50%, #dc2626 100%);
  transform: scaleX(0);
  transition: transform 0.4s;
  z-index: 3;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: #dc2626;
  box-shadow: 0 25px 50px rgba(220, 38, 38, 0.3);
  transform: translateY(-12px) scale(1.02);
}

.service-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 18rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(16,42,67,0.3) 70%, rgba(16,42,67,0.6) 100%);
  opacity: 0.4;
  transition: opacity 0.4s;
  z-index: 1;
}

.service-card:hover .service-card-overlay {
  opacity: 0.6;
  background: linear-gradient(to bottom, transparent 0%, rgba(16,42,67,0.4) 60%, rgba(220,38,38,0.7) 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: white;
  background: linear-gradient(to top, rgba(16,42,67,0.85) 0%, rgba(16,42,67,0.4) 50%, transparent 100%);
  backdrop-filter: blur(8px);
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.service-card:hover .service-card-content {
  background: linear-gradient(to top, rgba(16,42,67,0.95) 0%, rgba(220,38,38,0.85) 50%, rgba(16,42,67,0.3) 100%);
  backdrop-filter: blur(12px);
  padding-bottom: 1.75rem;
}

.service-card-content h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.25rem;
}

.service-card-content p {
  text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 4px 15px rgba(0,0,0,0.4);
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.5;
}

.service-card:hover .service-card-content p {
  color: white;
}

.service-card a {
  text-shadow: 0 2px 10px rgba(0,0,0,0.6), 0 4px 15px rgba(0,0,0,0.4);
}

.service-card a:hover i {
  transform: translateX(5px);
}

.service-icon-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 3;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
}

.service-card:hover .service-icon-badge {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* Doctor Card */
.doctor-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
}

.doctor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #102a43 0%, #dc2626 100%);
  transform: scaleX(0);
  transition: transform 0.4s;
  z-index: 1;
}

.doctor-card:hover::before {
  transform: scaleX(1);
}

.doctor-card:hover {
  box-shadow: 0 25px 50px rgba(220, 38, 38, 0.25);
  transform: translateY(-12px) scale(1.02);
  border-color: #dc2626;
}

.doctor-image {
  position: relative;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.1);
  object-position: center center;
}

.doctor-social {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,42,67,0.95) 0%, rgba(220,38,38,0.9) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.doctor-card:hover .doctor-social {
  opacity: 1;
}

.doctor-social a {
  color: white;
  font-size: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.doctor-social a:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.3) 100%);
  transform: scale(1.25) rotate(10deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Department Card */
.department-card {
  @apply bg-gradient-to-br from-white to-gray-50 rounded-2xl p-8 shadow-lg border border-gray-100 transition-all duration-300 hover:shadow-2xl hover:border-primary-300;
}

.department-icon {
  @apply w-16 h-16 bg-primary-100 rounded-full flex items-center justify-center mb-4;
}

/* Testimonial Card */
.testimonial-card {
  @apply bg-white rounded-2xl p-8 shadow-lg border-l-4 border-primary-600;
}

.testimonial-quote {
  @apply text-gray-600 italic mb-4;
}

.testimonial-author {
  @apply flex items-center gap-4;
}

.testimonial-avatar {
  @apply w-12 h-12 rounded-full object-cover;
}

/* Appointment Form */
.appointment-step {
  @apply hidden;
}

.appointment-step.active {
  @apply block animate-fade-in;
}

/* Loading Spinner */
.spinner {
  @apply inline-block w-8 h-8 border-4 border-primary-200 border-t-primary-600 rounded-full animate-spin;
}

/* Badge */
.badge {
  @apply inline-flex items-center px-3 py-1 rounded-full text-sm font-medium;
}

.badge-primary {
  @apply bg-primary-100 text-primary-800;
}

.badge-success {
  @apply bg-secondary-100 text-secondary-800;
}

/* Breadcrumb */
.breadcrumb {
  @apply flex items-center gap-2 text-sm text-gray-600;
}

.breadcrumb a {
  @apply hover:text-primary-600 transition-colors;
}

.breadcrumb-separator {
  @apply text-gray-400;
}

/* Modal */
.modal-overlay {
  @apply fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4;
}

.modal-content {
  @apply bg-white rounded-2xl shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-y-auto;
}

/* Chat Widget */
.chat-widget {
  @apply fixed bottom-6 right-6 z-50;
}

.chat-button {
  @apply w-16 h-16 bg-primary-600 rounded-full shadow-lg flex items-center justify-center text-white hover:bg-primary-700 transition-all duration-300 hover:scale-110;
}

.chat-window {
  @apply fixed bottom-24 right-6 w-96 h-[500px] bg-white rounded-2xl shadow-2xl z-50 flex flex-col;
}

/* Virtual Tour */
.tour-container {
  @apply relative w-full h-[600px] rounded-2xl overflow-hidden;
}

.tour-controls {
  @apply absolute bottom-4 left-1/2 transform -translate-x-1/2 flex gap-2;
}

.tour-button {
  @apply bg-white bg-opacity-90 px-4 py-2 rounded-lg hover:bg-opacity-100 transition-all;
}

