/* Main Styles for legal-billing.ai - Updated with sleek modern design */

.highlight-word-1 {
  font-style: italic;
}

.highlight-word-2 {
  font-style: underline;
}

:root {
  --primary-color: #0052cc; /* Blue from the logo */
  --primary-light: #e6f0ff;
  --primary-dark: #0041a8;
  --secondary-color: #36b37e; /* Accent green for success elements */
  --light-gray: #f8f9fa;
  --mid-gray: #e9ecef;
  --dark-gray: #343a40;
  --text-color: #495057;
  --border-color: #dfe1e6;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.25rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
}

h6 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 10px;
  background-color: rgba(0, 82, 204, 0.1);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.emphasis {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.emphasis-secondary {
  font-weight: 700;
  color: var(--dark-gray);
  font-size: 1.15rem;
  border-left: 3px solid var(--primary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.emphasis-third {
  font-weight: 700;
  color: var(--dark-gray);
  font-size: 1.15rem;
  font-style: italic;
  border-left: 3px solid var(--secondary-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.section-tagline {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 0.75rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

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

.nav-link {
  font-weight: 500;
  margin: 0 0.75rem;
  padding: 0.5rem 0.25rem !important;
  color: var(--dark-gray) !important;
  position: relative;
  transition: var(--transition);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition);
}

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

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

.btn-nav {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 50px;
  padding: 0.5rem 1.25rem !important;
  margin-left: 1rem;
}

.btn-nav:hover, .btn-nav:focus {
  background-color: var(--primary-dark);
  color: white !important;
}

.btn-nav:after {
  display: none;
}

/* Hero Section */
.fullscreen-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  padding: 120px 0 80px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-content {
  padding-right: 2rem;
}

.hero h1 {
  margin-bottom: 2rem;
  color: var(--dark-gray);
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero .lead {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.cta-buttons {
  margin-top: 2.5rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 6px rgba(0, 82, 204, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 8px rgba(0, 82, 204, 0.25);
}

.btn-outline {
  border: 2px solid var(--border-color);
  color: var(--dark-gray);
  margin-left: 1rem;
}

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

.hero-image-col {
  display: flex;
  justify-content: flex-end;
  padding-left: 2rem;
}

.hero-image-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.hero-image {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  width: 100%;
}

.hero-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.floating-badge {
  position: absolute;
  top: -20px;
  right: 30px;
  background: linear-gradient(45deg, var(--primary-color), #3a7bd5);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.badge-label {
  font-size: 0.9rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bounce 2s infinite;
}

.scroll-indicator a {
  color: var(--dark-gray);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-text {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Stats Container */
.stats-container {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
  display: flex;
  align-items: baseline;
}

.smaller {
  font-size: 1.35rem;
  margin-left: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-color);
  margin-top: 0.35rem;
}

/* Section Styling */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header.light h2,
.section-header.light .section-tagline {
  color: white;
}

.section-subtitle {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.bg-light {
  background-color: var(--light-gray);
}

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

/* Problem Section */
.problem-card {
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.problem-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.problem-list {
  margin-bottom: 2rem;
  padding-left: 0;
  list-style: none;
}

.problem-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 1rem;
  flex-shrink: 0;
}

.image-container {
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

.image-container img {
  max-width: 90%;
  transition: var(--transition);
}

.image-container img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Solution Section */
.solution-image-container {
  position: relative;
  margin-bottom: 2rem;
}

.solution-image {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(5deg);
  transition: var(--transition);
}

.solution-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.floating-card {
  position: absolute;
  bottom: 30px;
  right: -30px;
  background-color: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  max-width: 240px;
  z-index: 2;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-content h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.card-content p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Feature List */
.feature-list {
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.feature-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.feature-item:hover {
  background-color: var(--light-gray);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 12px;
  margin-right: 1.5rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.feature-content p {
  margin-bottom: 0;
  color: var(--text-color);
  font-size: 1rem;
}

/* Ask Section */
.timeline {
  margin-top: 2.5rem;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-date {
  font-weight: 700;
  min-width: 100px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.timeline-content {
  position: relative;
  padding-left: 2rem;
  flex: 1;
}

.timeline-content:before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 1px;
  height: calc(100% + 2rem);
  background-color: rgba(255, 255, 255, 0.3);
}

.timeline-item:last-child .timeline-content:before {
  display: none;
}

.timeline-content:after {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
}

.timeline-content h5 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.cta-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.btn-block {
  width: 100%;
}

/* Benefits Section */
.benefit-card {
  padding: 2.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: var(--transition);
}

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

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

.benefit-card .display-1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.benefit-card .display-4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* Testimonial Section */
.testimonial-section {
  margin-top: 4rem;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 50px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial blockquote {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark-gray);
  font-style: italic;
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Contact Section */
.contact-form-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  height: auto;
}

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

.form-floating label {
  padding: 0.75rem 1rem;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label,
.form-floating>.form-select~label {
  transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
  background-color: white;
  height: auto;
  padding: 0 0.5rem;
  margin-left: 0.5rem;
}

.contact-info {
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
  height: 100%;
}

.contact-info h4 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-method .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  margin-right: 1rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method .content h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-method .content p {
  margin-bottom: 0;
}

.contact-method a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-method a:hover {
  color: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--light-gray);
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.25rem;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Footer */
.footer {
  background-color: var(--light-gray);
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--mid-gray);
}

.footer-brand {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary-color);
}

/* Responsive Adjustments */
@media (min-width: 1400px) {
  .hero-content {
    padding-left: 3rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero .lead {
    font-size: 1.4rem;
  }
  
  .stats-container {
    gap: 4rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
}

@media (min-width: 992px) {
  /* Ensure hero section takes full height and other sections are below viewport */
  .fullscreen-section {
    height: 100vh;
    overflow: hidden;
  }
  
  .hero-shape {
    display: none;
  }
  
  /* Subtle horizontal parallax effect */
  .hero-content {
    transform: translateX(0);
    opacity: 0;
    animation: slideInFromLeft 1s ease-out forwards 0.5s;
  }
  
  .hero-image-container {
    transform: translateX(30px);
    opacity: 0;
    animation: slideInFromRight 1s ease-out forwards 0.5s;
  }
  
  @keyframes slideInFromLeft {
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slideInFromRight {
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding: 140px 0 80px;
    height: auto;
    min-height: 100vh;
  }
  
  .hero-content {
    padding-right: 0;
  }
  
  .hero-image-col {
    padding-left: 15px;
    justify-content: center;
    margin-top: 3rem;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-outline {
    margin-left: 0;
  }
  
  .floating-card {
    right: 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .hero-image-container {
    margin-top: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .stats-container {
    justify-content: space-around;
  }
  
  .testimonial {
    padding: 2rem;
  }
  
  .testimonial blockquote {
    font-size: 1.25rem;
  }
  
  .contact-info {
    margin-top: 3rem;
  }
  
  .scroll-indicator {
    bottom: 20px;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 13px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  h1 {
    font-size: 2.25rem;
  }
  
  .hero-image-container {
    margin-top: 2rem;
  }
  
  .floating-badge {
    top: -15px;
    right: 15px;
    padding: 0.35rem 1rem;
  }
  
  .feature-item {
    flex-direction: column;
  }
  
  .feature-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .stats-container {
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .smaller {
    font-size: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-date {
    margin-bottom: 0.5rem;
  }
  
  .timeline-content {
    padding-left: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Animation Classes */
.animated {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Thank You Page Styles */
.thank-you-section {
  padding-top: 150px;
}

.thank-you-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  margin-top: 3rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thank-you-card h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.thank-you-card .lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}