body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
  animation: fadeIn 0.5s ease-in-out;
}

/* -------- NAVBAR -------- */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #00bcd4;
}

/* -------- MAIN -------- */
main {
  max-width: 900px;
  margin: 2rem auto 5rem auto; /* extra bottom margin so footer doesn't overlap */
  padding: 2rem;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 12px;
  animation: slideIn 0.8s ease-in-out;
}

h2 {
  color: #0077b6;
  margin-bottom: 1rem;
}

/* -------- FOOTER -------- */
.footer {
  background-color: #1f2937;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-left, .footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left a, .footer-right a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
}

.footer-right span {
  margin: 0 8px;
}

.social-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: brightness(0) invert(1); /* Make icons white */
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* -------- ANIMATIONS -------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.logo-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-link:hover {
  opacity: 0.85;
}

/* -------- RESPONSIVE BREAKPOINTS -------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
    flex-direction: column;
    width: 100%;
  }

  nav a {
    margin: 0.5rem 0;
  }

  main {
    padding: 1.5rem;
    margin: 1rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 15px 20px;
  }

  .footer-left, .footer-right {
    margin: 5px 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }

  main {
    padding: 1rem;
  }

  body {
    font-size: 14px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }
}
