/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, #0f0f1c, #090913 80%);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #a078ff;
  text-shadow: 0 0 10px #7a5fff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #7a5fff;
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #141427, #0a0a15);
}

.hero-content {
  max-width: 800px;
  padding: 2.5rem;
  border-radius: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #b294ff;
  text-shadow: 0 0 15px rgba(178, 148, 255, 0.5);
}

.hero p {
  color: #dcdcdc;
  margin-bottom: 2rem;
}

.btn {
  background: linear-gradient(90deg, #6a5acd, #8a2be2);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #7a5fff;
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 3rem auto;
  width: 85%;
}

/* Section Headings */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #a078ff;
  text-shadow: 0 0 10px rgba(122, 95, 255, 0.5);
}

/* Generators Section */
.generators .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 85%;
  margin: auto;
}

.card {
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.25);
}

.card h3 {
  color: #b88cff;
  margin-bottom: 1rem;
}

.card p {
  color: #d0d0d0;
}

/* How & Why Sections */
.how ol,
.why ul {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 1.5rem;
}

.how li,
.why li {
  margin-bottom: 0.8rem;
  color: #dcdcdc;
}

/* FAQ Section */
.faq-item {
  max-width: 700px;
  margin: 1rem auto;
}

.faq-item h3 {
  color: #b88cff;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: #d0d0d0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(10px);
  position: relative;
}

.back-to-top {
  display: inline-block;
  margin-top: 1rem;
  color: #7a5fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  text-shadow: 0 0 15px #a078ff;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .glass {
    width: 90%;
    padding: 1.8rem;
  }
}
