/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #222;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  z-index: 1000;
}

#navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#navbar a:hover {
  color: #ff9800;
}

/* Welcome Section */
#welcome-section {
  height: 100vh; /* Chiếm full màn hình */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  text-align: center;
  padding: 20px;
}

#welcome-section h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

#welcome-section p {
  font-size: 1.3rem;
}

/* Projects Section */
#projects {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

#projects h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

/* Grid layout for projects */
#projects .projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

/* Project tile */
.project-tile {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 280px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-tile img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.5rem;
}

.project-tile p {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: #333;
}

/* Special case: multiple images inside one project */
.project-tile.multiple img {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #fff;
  margin-top: 40px;
}

/* Media Queries */
@media (max-width: 768px) {
  #navbar {
    flex-direction: column;
    align-items: center;
  }

  #welcome-section h1 {
    font-size: 2rem;
  }

  .project-tile {
    width: 90%;
  }
}
