/* Navigation styling */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}
/* Projects Gallery */
.projects-section {
  padding: 50px 20px;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.projects-section .section-description {
  margin-bottom: 40px;
  color: #555;
  font-size: 1.1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.project-item img {
  width: 100%;
  height: auto;
  display: block;
}

.project-item h3 {
  margin: 12px 0;
  font-size: 1rem;
  color: #222;
  padding: 0 10px;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Hide links by default for mobile */
#nav-links {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* Show links when active */
#nav-links.active {
  display: flex;
}

/* Box styling for links */
#nav-links a {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid black;
  border-radius: 8px;
  text-decoration: none;
  background-color: white;
  color: black;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Hover effect */
#nav-links a:hover {
  background-color: black;
  color: white;
}

/* Hamburger button styling */
#hamburger {
  font-size: 24px;
  cursor: pointer;
  user-select: none;
}

/* Desktop view: show links without hamburger toggle */
@media (min-width: 768px) {
  #nav-links {
    display: flex !important;
  }
  #hamburger {
    display: none;
  }
}
