body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #430396;
  opacity: 0.9;
  padding: 12px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li.logo img {
  max-height: 100px;   /* balanced logo size */
  width: auto;
  display: block;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #41d880;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #430396, #ae9fbe);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero button {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #41d880;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.hero button:hover {
  background: #e68900;
}

/* Sections */
section {
  padding: 80px 20px;
  text-align: center;
}

section, .card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

section.visible, .card.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin-bottom: 30px;
  font-size: 2.2rem;
  color: #1a1a2e;
}

/* Service Cards */
.service-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.card {
  flex: 1;
  min-width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 25px;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Responsive fix: stack cards on small screens */
@media (max-width: 900px) {
  .service-cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card {
    flex: 1 1 300px;
    max-width: 350px;
  }
}

/* Contact */
.contact button {
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #430396;
  color: white;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #41d880;
}

/* Footer */
footer {
  background: #430396;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Dark Mode */
.dark-mode {
  background: #121212;
  color: #eee;
}

.dark-mode nav, 
.dark-mode footer {
  background: #000;
}

/* === Custom Fixes === */
section p {
  max-width: 900px;
  margin: 0 auto 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}