* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  /* Increased padding to prevent hero from hiding behind navbar */
  padding-top: 80px;
}

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

/* Header */
.header {
  background: #4b1e33;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav a:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: #f8f9fa;
}

.service-card {
  scroll-margin-top: 100px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.service-card {
  flex: 1 1 350px; /* Base width of 350px, but grows to fill space */
  max-width: 380px; /* Prevents cards from getting too wide on desktop */
  background: white;
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 3px solid transparent;

  /* These two lines keep the button at the bottom if text lengths differ */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #4b1e33;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-card h3 {
  color: #4b1e33;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.service-tagline {
  color: #4b1e33;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  flex-grow: 1; /* This pushes the button to the bottom */
}

.service-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #555;
}

.service-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4b1e33;
  font-weight: bold;
}

.btn-primary {
  background-color: #4b1e33;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #3a1627;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(75, 30, 51, 0.3);
}

/* Why Choose Us Section */
.why-choose {
  padding: 5rem 0;
  background: white;
}

.why-choose h2 {
  text-align: center;
  color: #4b1e33;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

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

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.feature-item h4 {
  color: #4b1e33;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, #58233b 0%, #7d3450 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

  .services-grid {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    max-width: 100%; /* Cards take full width on mobile */
    padding: 2rem;
  }

  /* This ensures your navbar menu doesn't overlap the content */
  .nav-menu {
    top: 80px;
  }
}

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

.service-card {
  animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.4s;
}
