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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #f0f8ff, #e6f0ff);
  color: #333;
}

/* Navigation */
nav {
  background: linear-gradient(to right, #003366, #0055aa);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-title {
  flex-grow: 1;
  text-align: center;
  font-size: 1.2rem;
}

.nav-links {
  list-style-type: none;
}

.nav-links li {
  display: inline;
  margin-right: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Project grid */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Project cards */
.project-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Images */
.project-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.project-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Download Button */
.download-button {
  display: inline-block;
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 114, 255, 0.4);
}

/* Footer */
footer {
  background-color: #dceeff;
  color: #333;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #0055aa;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media screen and (max-width: 768px) {
  .project-card img {
    max-width: 100%;
  }

  .nav-title {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    margin-top: 10px;
  }

  .nav-links li {
    display: block;
    margin: 8px 0;
  }

  .projects {
    grid-template-columns: 1fr;
  }
}
