/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Navbar Styling */

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  background: #f4f4f4;
  position: relative;
}

nav a {
  color: #333;
  text-decoration: none;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

/* Hover underline animation */
nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

nav a:hover::after {
  width: 100%;
}

/* Responsive Nav for smaller screens */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
}

/* Responsive Design Additions */

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  header img {
    max-width: 120px;
  }

  .container {
    padding: 10px;
  }

  h1, h2 {
    font-size: 1.5rem;
  }

  nav a {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  header img {
    max-width: 100px;
  }

  nav {
    gap: 10px;
  }

  h1, h2 {
    font-size: 1.2rem;
  }

  button {
    width: 100%;
    padding: 15px;
  }
}

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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root {
  --primary-color: #0077b6;
  --bg-color: #ffffff;
  --text-color: #333333;
}

.dark-mode {
  --bg-color: #121212;
  --text-color: #eeeeee;
}

header {
  text-align: center;
  padding: 20px 0;
  background-color: var(--primary-color);
  color: #fff;
}

header img {
  max-width: 150px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: #f4f4f4;
}

nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #023e8a;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: #f4f4f4;
  margin-top: 20px;
}
