/* 
  Medical Resources - Modern Design System
  Theme: Trust, Professionalism, and Innovation
*/

:root {
  /* Color Palette */
  --primary: #102A43;      /* Deep Navy */
  --primary-light: #243B53;
  --secondary: #2CB1BC;    /* Medical Teal */
  --secondary-light: #48C7D2;
  --accent: #E0FCFF;       /* Soft Mint */
  --text-dark: #102A43;
  --text-muted: #627D98;
  --bg-light: #F0F4F8;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -5px rgba(16, 42, 67, 0.1);
  --shadow-lg: 0 20px 40px -10px rgba(16, 42, 67, 0.2);
}

/* Base Styles */
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
}

/* Navbar Enhancements */
.navbar {
  transition: var(--transition);
  backdrop-filter: blur(10px);
  background: transparent;
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.navbar-brand img {
  height: 45px;
  transition: var(--transition);
}

.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
}

.navbar.scrolled .navbar-toggler {
  color: var(--primary);
}

.nav-link {
  font-weight: 500;
  color: var(--white) !important;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

/* Modern Buttons */
.btn-premium {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(44, 177, 188, 0.3);
}

.btn-premium:hover {
  background: var(--secondary-light);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(44, 177, 188, 0.4);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.85) 0%, rgba(44, 177, 188, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.hero-content h1 {
  color: var(--white);
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Services Grid */
.service-icon {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

/* Stats Section */
.stats-section {
  background: var(--primary);
  color: var(--white);
  padding: 5rem 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial Specifics */
.testimonial-section {
  background: linear-gradient(180deg, var(--bg-light) 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(44, 177, 188, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.testimonial-card {
  padding: 3rem !important;
  position: relative;
}

.testimonial-card::after {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.1;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--secondary);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.floating-badge {
  padding: 1.25rem !important;
  border-radius: 18px !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
  backdrop-filter: blur(10px);
}

.floating-badge:hover {
  transform: scale(1.1) translateY(-5px) !important;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15) !important;
  z-index: 10;
}

.badge-primary { background: linear-gradient(135deg, var(--white) 0%, #f9fafb 100%) !important; }
.badge-secondary { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%) !important; color: white !important; }
.badge-navy { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important; color: white !important; }

.badge-navy h3, .badge-secondary h3 { color: white !important; }
.badge-navy small, .badge-secondary small { color: rgba(255,255,255,0.8) !important; }

/* Accordion Premium */
.accordion-premium .accordion-item {
  border: none;
  background: var(--white);
  border-radius: 15px !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-premium .accordion-button {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--white);
  box-shadow: none;
}

.accordion-premium .accordion-button:not(.collapsed) {
  color: var(--secondary);
  background: rgba(44, 177, 188, 0.05);
}

.accordion-premium .accordion-button:after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23102A43'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Insight Cards */
.insight-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  border: none;
  cursor: pointer;
}

.insight-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insight-card:hover .insight-image {
  transform: scale(1.1);
}

.insight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.9) 0%, rgba(16, 42, 67, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  color: var(--white);
}

.insight-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Mobile Optimizations */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}
