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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navbar */
header {
  display: flex;
  justify-content: center;
  margin-top: 2%;
  flex-wrap: wrap;
  padding: 10px;
}

.box2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-size: 1.2em;
  letter-spacing: 2px;
}

#a1, #a2, #a3, #a4 {
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

#a1:hover, #a2:hover, #a3:hover, #a4:hover {
  color: gray;
}

/* Navigation Links */
.navbar {
  text-align: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 10px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: grey;
}

/* Container */
#container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Card Styling */
.card {
  background: #2c2f4a;
  padding: 25px 20px;
  border-radius: 16px;
  width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.card h2 {
  color: #7EC8E3;
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-align: center;
}

.card ul {
  padding-left: 20px;
  list-style-type: disc;
  line-height: 1.6;
}

.card li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.card p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
}

.card .email-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 5px;
}

/* Media Queries: Responsiveness */
@media (max-width: 992px) {
  .card {
    width: 40%;
  }
}

@media (max-width: 768px) {
  .box2 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .card {
    width: 80%;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .card {
    width: 95%;
    padding: 20px 15px;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card li, .card p {
    font-size: 0.95rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }

  .box2 {
    font-size: 1rem;
    gap: 15px;
  }
}
