/* ============================================
   INDEX PAGE - MODERN PROFESSIONAL DESIGN
   Medical Billing & Transcription Services
   ============================================ */

/* ============================================
   HERO SECTION - PREMIUM MODERN DESIGN
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Animated Background Shapes */
.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s infinite ease-in-out;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #991b1b, #dc2626);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 6s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(30, 58, 138, 0.1);
  border: 2px solid rgba(30, 58, 138, 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-badge svg {
  color: #10b981;
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.gradient-text {
  background: linear-gradient(135deg, #1e3a8a 0%, #991b1b 50%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 100px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(30, 58, 138, 0.1);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #64748b;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: currentColor;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

/* Service Icons with Colors */
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.1;
  transition: opacity 0.3s;
}

.service-card:hover .service-icon::before {
  opacity: 0.15;
}

.service-icon-blue {
  color: #1e3a8a;
  background: rgba(30, 58, 138, 0.1);
}

.service-icon-red {
  color: #991b1b;
  background: rgba(153, 27, 27, 0.1);
}

.service-icon-green {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
}

.service-icon-purple {
  color: #6b21a8;
  background: rgba(107, 33, 168, 0.1);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-description {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  margin-bottom: 8px;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Services CTA */
.services-cta {
  text-align: center;
  margin-top: 60px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.about-content .section-badge {
  text-align: left;
  margin-bottom: 20px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 20px;
}

/* About Features */
.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.feature-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-feature h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* About Visual */
.about-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

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

.visual-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s;
}

.visual-card:hover {
  transform: translateX(10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.visual-card-1 .card-icon {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.visual-card-2 .card-icon {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 8px;
}

.card-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.visual-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.1), rgba(30, 58, 138, 0.1));
  border-radius: 50%;
  top: -50px;
  right: -50px;
  z-index: -1;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-choose-section {
  padding: 100px 0;
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 32px;
  border: 2px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(153, 27, 27, 0.05));
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: #1e3a8a;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(30, 58, 138, 0.05);
  line-height: 1;
  transition: all 0.4s;
}

.feature-card:hover .feature-number {
  color: rgba(30, 58, 138, 0.1);
  transform: scale(1.1);
}

.feature-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon-large {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
}

.feature-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-description {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #991b1b 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-content {
  flex: 1;
  min-width: 300px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: white;
  color: #1e3a8a;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  width: 60px;
  height: auto;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 15px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

.footer-links a:hover {
  color: white;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #3b82f6;
}

.contact-item a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: white;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item span:first-child {
  font-weight: 600;
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .about-grid {
    gap: 60px;
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 968px) {
  .hero {
    min-height: 80vh;
    padding: 100px 0 60px;
  }
  
  .hero-stats {
    gap: 32px;
    padding: 24px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-visual {
    order: -1;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-description {
    margin: 0 auto;
  }
  
  .cta-actions {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .visual-card {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 40px;
  }
  
  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
  }
  
  .btn-lg {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .service-card,
  .feature-card {
    padding: 32px 24px;
  }
  
  .footer {
    padding: 60px 0 0;
  }
}

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

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .hero-actions,
  .cta-section,
  .footer {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: 20px 0;
  }
  
  body {
    background: white;
  }
}