/* Base Styles */
:root {
  --primary: #2a5bd7;
  --primary-dark: #1e4bbb;
  --secondary: #f8f9fa;
  --text: #333;
  --light-text: #666;
  --border: #e1e4e8;
  --background: #fff;
  --card-bg: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4a7cff;
    --primary-dark: #3a6bef;
    --secondary: #2d3748;
    --text: #f8f9fa;
    --light-text: #a0aec0;
    --border: #4a5568;
    --background: #1a202c;
    --card-bg: #2d3748;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
}

/* Shared Components */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(42, 91, 215, 0.1);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  padding: 8px 16px;
}

.btn-outline:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

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

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--light-text);
  line-height: 1.6;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.subheading {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
}

/* Services Grid */
.services-grid {
  background-color: var(--secondary);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-price {
  font-weight: bold;
  color: var(--primary);
  margin: 1rem 0;
}

/* Why Choose Us */
.why-choose-us {
  background-color: var(--background);
}

.reasons-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 2rem;
}

.reason {
  text-align: center;
  padding: 20px;
}

.reason-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Comparison Table */
.comparison {
  background-color: var(--secondary);
}

.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background-color: var(--primary);
  color: white;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: rgba(42, 91, 215, 0.05);
}

.comparison-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--background);
}

.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  font-size: 2rem;
}

.author-name {
  font-weight: 600;
  color: var(--text);
}

.author-title {
  color: var(--light-text);
  font-size: 0.875rem;
}

/* CTA Section */
.cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  border-radius: var(--radius);
  margin: 40px auto;
  padding: 60px 20px;
}

.cta h2, .cta p {
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
}

.cta .btn-primary {
  background-color: white;
  color: var(--primary);
  border-color: white;
}

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

.cta .btn-secondary {
  color: white;
  border-color: white;
}

.cta .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-buttons, .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
  }
  
  .grid-container, .reasons-container, .testimonial-container {
    grid-template-columns: 1fr;
  }
}