:root {
  --primary-color: #1a202c; /* Dark gray/black for text and elements */
  --secondary-color: #4a5568; /* Lighter gray for secondary text */
  --accent-color: #6366f1; /* Indigo for highlights */
  --background-color: #ffffff; /* White background */
  --light-gray: #f7fafc; /* Light background for sections */
  --border-color: #e2e8f0; /* Light border color */
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--background-color);
  color: var(--primary-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--background-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative; /* Needed for absolute positioning of mobile menu */
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px; /* Increased logo height */
  width: auto;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; /* Hidden by default on larger screens */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001; /* Ensure it's above the menu */
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
  background-color: var(--light-gray);
  text-align: center;
  padding: 6rem 0;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #4f46e5; /* Slightly darker indigo */
}

.btn-small {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 1rem; /* Space above the button */
  transition: background-color 0.3s ease;
}

.btn-small:hover {
  background-color: #4f46e5;
}

/* New style for "Back to Services" button */
.btn-service-back {
  display: inline-flex; /* Use flexbox for icon and text alignment */
  align-items: center;
  gap: 0.5rem; /* Space between icon and text */
  background-color: var(--background-color); /* White background */
  color: var(--accent-color); /* Indigo text */
  border: 1px solid var(--accent-color); /* Indigo border */
  padding: 0.8rem 2rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-service-back:hover {
  background-color: var(--accent-color); /* Indigo background on hover */
  color: #fff; /* White text on hover */
  border-color: var(--accent-color); /* Keep border color same on hover */
}

.btn-service-back span {
  font-size: 1.2rem; /* Size for the arrow icon */
  line-height: 1; /* Ensure arrow aligns well */
}

/* Section Styling */
section {
  padding: 4rem 0;
  margin-bottom: 2rem;
}

section h2 {
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card p {
  color: var(--secondary-color);
}

/* Detailed Service Sections */
.detailed-service-section {
  padding: 5rem 0; /* More padding for detailed sections */
  margin-bottom: 2rem;
  text-align: center;
}

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

.detailed-service-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.detailed-service-section p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.detailed-service-section ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 600px;
  text-align: left;
}

.detailed-service-section ul li {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.detailed-service-section ul li strong {
  color: var(--accent-color);
}

/* Founder Section */
.founder-section {
  background-color: var(--light-gray);
  text-align: center; /* Center all content within the section */
}

.founder-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
}

.founder-initials-circle {
  width: 100px; /* Size of the circle */
  height: 100px;
  border-radius: 50%;
  background-color: var(--accent-color); /* Background color of the circle */
  color: #fff; /* Text color inside the circle */
  font-size: 2.5rem; /* Size of the initials */
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem; /* Space below the circle */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.founder-content h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.founder-content p {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem; /* Slightly more rounded corners */
  padding: 2.5rem; /* Increased padding */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* More pronounced shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left; /* Align text to the left */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px); /* Lift slightly more on hover */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12); /* Stronger shadow on hover */
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1.5rem; /* More space below quote */
  color: var(--primary-color);
  font-size: 1.1rem; /* Slightly larger quote text */
  line-height: 1.7; /* Improved readability */
  position: relative;
}

.testimonial-card p::before {
  content: "“"; /* Large opening quote mark */
  font-family: serif; /* Use a serif font for the quote mark */
  font-size: 4rem; /* Large size */
  color: var(--accent-color); /* Accent color for the quote mark */
  position: absolute;
  top: -1rem;
  left: -1rem;
  opacity: 0.1; /* Subtle opacity */
  line-height: 1;
  z-index: 0;
}

.testimonial-author {
  font-weight: 700; /* Bolder author name */
  color: var(--primary-color);
  margin-top: 1rem; /* Space above author */
  font-size: 1.1rem;
}

.testimonial-title {
  font-size: 0.95rem; /* Slightly larger title */
  color: var(--secondary-color);
  margin-top: 0.25rem; /* Small space below author */
}

/* Features Section */
.features-section {
  background-color: var(--light-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-item .icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.feature-item p {
  color: var(--secondary-color);
}

/* Contact Section */
.contact-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.contact-info strong {
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ccc;
}

.footer-logo-img {
  height: 40px; /* Adjust logo height for footer */
  width: auto;
  margin-bottom: 1rem; /* Space below the logo */
}

/* Back to Top Button */
.back-to-top {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed position */
  bottom: 20px; /* 20px from the bottom */
  right: 20px; /* 20px from the right */
  background-color: var(--accent-color); /* Background color */
  color: white; /* Text color */
  border: none; /* No border */
  border-radius: 50%; /* Circular shape */
  width: 50px; /* Width of the button */
  height: 50px; /* Height of the button */
  font-size: 1.5rem; /* Icon size */
  cursor: pointer; /* Pointer cursor on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: background-color 0.3s ease, opacity 0.3s ease; /* Smooth transitions */
  z-index: 999; /* Ensure it's above other content */
  opacity: 0; /* Start fully transparent */
  pointer-events: none; /* Disable interactions when hidden */
}

.back-to-top.show {
  opacity: 1; /* Show when active */
  pointer-events: auto; /* Enable interactions when shown */
}

.back-to-top:hover {
  background-color: #4f46e5; /* Darker shade on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section h2 {
    font-size: 1.75rem;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: block; /* Show hamburger on small screens */
  }

  .nav-links {
    display: none; /* Hide nav links by default */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translateY(-10px); /* Start slightly above */
    opacity: 0;
    pointer-events: none; /* Disable interactions when hidden */
  }

  .nav-links.open {
    display: flex; /* Show when open */
    transform: translateY(0); /* Slide into place */
    opacity: 1;
    pointer-events: auto; /* Enable interactions */
  }

  .nav-links li {
    text-align: center;
    margin: 0.5rem 0;
  }

  .nav-links a {
    padding: 0.5rem 1rem;
    display: block;
  }

  nav {
    justify-content: space-between; /* Keep logo and toggle separated */
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .service-card,
  .testimonial-card,
  .feature-item {
    padding: 1.5rem;
  }

  .founder-content h3 {
    font-size: 1.5rem;
  }
}
