/* Color Variables */
:root {
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --green: #059669;
  --green-light: #d1fae5;
  --orange: #ea580c;
  --orange-light: #ffedd5;
  --yellow: #f59e0b;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background-color: var(--white);
}

/* Utility Classes */
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-yellow { color: var(--yellow); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }

.bg-blue-light { background-color: var(--blue-light); }
.bg-purple-light { background-color: var(--purple-light); }
.bg-green-light { background-color: var(--green-light); }
.bg-orange-light { background-color: var(--orange-light); }
.bg-gray-100 { background-color: var(--gray-100); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Hero Section */
.hero-section {
  background: linear-gradient(to bottom right, #f0f9ff, var(--white));
  padding: 3rem 1rem; /* 🔽 reduce top/bottom for mobile */
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 5rem 1rem; /* 🖥 restore for desktop */
  }
}
@media (max-width: 640px) {
  .hero-section {
    padding-bottom: 0.3rem; /* ⬅️ Reduce bottom space on mobile only */
  }
}


.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 1023px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-image.mobile-image {
  order: -1;
  margin: 1rem 0 1.5rem 0; /* 🔽 tighter spacing above/below image */
}

  .hero-image.desktop-image {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero-container {
    flex-direction: row;
  }
  .hero-image.mobile-image {
    display: none;
  }
  .hero-image.desktop-image {
    display: flex;
  }
}

.hero-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}



@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    padding-left: 0;     /* ✅ remove left pad on larger screens */
  }
}



.hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}


.highlight {
  font-weight: 600;
  color: var(--blue);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem auto 2.5rem auto; /* ✅ space top + center on desktop */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;         /* ✅ center */
  align-items: center;
}




.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: var(--gray-100);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;  /* ✅ wrap stats */
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
  margin-top: 0.5rem;
}


.stat-item {
  flex: 1 0 auto;
  text-align: center;
  white-space: nowrap;
}


.stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-image-wrapper {
  position: relative;
}

.profile-img {
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
  .profile-img {
    width: 20rem;
    height: 20rem;
  }
}

.profile-badge {
  position: absolute;
  bottom: 1rem;
  right: -1rem;
  background-color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

.badge-highlight {
  color: var(--blue);
}

/* Section Styles */
.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.5rem 1rem; /* ↓ Reduced from 5rem to 3rem */
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--gray-600);
  max-width: 48rem;
  margin: 0 auto;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.875rem;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 0.75rem;
}

.group:hover .service-link {
  text-decoration: underline;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  gap: 0.5rem;
}

.btn-outline:hover {
  background-color: var(--gray-100);
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--gray-100);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
  color: var(--yellow);
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
}

.author-title {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-image-container {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 640px) {
  .section-container {
    padding: 0.5rem 1rem; /* ⬅️ smaller on mobile */
  }
}

.blog-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
  color: var(--blue);
}

.blog-excerpt {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-read-more {
  gap: 0.75rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, var(--blue), var(--purple));
  color: var(--white);
  padding: 4rem 1rem;
}

.cta-container {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.75rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-direction: column;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-white {
  background-color: var(--white);
  color: var(--blue);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: var(--gray-100);
}

.btn-outline.btn-white {
  border: 1px solid var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  /* ❌ Remove this line below or override it properly */
  /* .hero-buttons {
    flex-direction: column;
  } */

  .cta-buttons {
    flex-direction: column;
  }
}


.hero-content {
  flex: 1;
  text-align: center;
  padding: 0 1rem; /* ✅ Add this line */
  width: 100%;     /* ✅ Ensure it doesn't overflow */
  box-sizing: border-box; /* ✅ Include padding in width */
}
/* Add this at the bottom of your CSS */
@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }
}


@media (max-width: 480px) {
  .hero-content {
    text-align: left !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
    white-space: normal;
    text-align: left !important;
    padding-left: 0 !important;
  }

  .hero-subtitle {
    text-align: left;
    margin: 0;
  }
}


