@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary: #6c5ce7;
  --secondary: #a29bfe;
  --text: #2d3436;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

nav {
  background-color: var(--surface);
  height: 70px;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap; /* Added for responsiveness */
}

nav a {
  text-decoration: none;
  color: #636e72;
  padding: 8px 20px;
  margin: 0 5px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

main {
  max-width: 900px;
  margin: 40px auto;
  background: var(--surface);
  padding: 50px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-height: 500px;
  transition: opacity 0.3s ease;
}

h1 {
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  display: block;
  width: 50%;
  height: 4px;
  background: var(--primary);
  margin-top: 5px;
  border-radius: 2px;
}

p {
  color: #636e72;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
  color: #636e72;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  nav {
    height: auto;
    padding: 15px 5%;
    flex-direction: column;
  }

  nav a {
    width: 100%;
    margin: 5px 0;
    text-align: center;
    padding: 10px;
  }

  main {
    margin: 20px 5%;
    padding: 30px 20px;
  }

  h1 {
    font-size: 1.8rem;
  }
}
