* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f7f9fc;
  color: #333;
}

/* NAVBAR */
.navbar {
  padding: 20px 60px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #0056ff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links .active {
  color: #0056ff;
}
/* HAMBURGER (Cowrywise style) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s ease-in-out;
}

/* When menu is opened (add .open class) */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* MOBILE MENU */
@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  #nav-links,
  .right-buttons {
    display: none;
    width: 100%;
    flex-direction: column;
    background: white;
    text-align: left;
    padding: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
    border-radius: 12px;
    margin-top: 10px;
  }

  #nav-links.show,
  .right-buttons.show {
    display: flex;
  }

  #nav-links li {
    margin: 12px 0;
  }

  #nav-links li a {
    padding: 8px 0;
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
  }

  .right-buttons a {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
  }

  .login-btn {
    border: 2px solid #6c5ce7;
    color: #6c5ce7;
  }

  .signup-btn {
    background: #6c5ce7;
    color: white;
  }

  /* Smooth animation */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* HERO */
.hero {
  text-align: center;
  padding: 90px 20px;
  background: #e8f0ff;
}

.hero h2 {
  font-size: 40px;
  color: #0037a5;
}

/* New text changing styles */
.hero h2 span {
  border-right: 2px solid #0037a5;
  padding-right: 5px;
  animation: blinkCaret 0.75s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

@keyframes blinkCaret {
  from, to { border-color: transparent; }
  50% { border-color: #0037a5; }
}

.hero p {
  max-width: 600px;
  margin: 10px auto 20px;
  color: #555;
  font-size: 17px;
}

.btn {
  padding: 12px 28px;
  background: #0056ff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #0037a5;
}

/* FEATURES */
.features {
  padding: 60px 40px;
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #0037a5;
}

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

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

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

.feature-card h3 {
  font-size: 18px;
  color: #0056ff;
  margin-bottom: 8px;
}

/* CTA */
.cta {
  text-align: center;
  padding: 70px 20px;
  background: #0056ff;
  color: white;
  margin-top: 50px;
}

.cta h2 {
  font-size: 28px;
}

.cta p {
  margin: 10px auto 20px;
  max-width: 600px;
}

footer {
  text-align: center;
  padding: 25px;
  background: white;
  margin-top: 40px;
}
