body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  margin: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 1rem 0 0 0;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 10px;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f4f4f4;
  margin-top: 2rem;
}

footer a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

@media (max-width: 600px) {
  nav a {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 2rem;
  }
}

.gallery img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img.hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.gallery img:hover {
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.profile-img {
  width: 200px;
  border-radius: 100px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.bio {
  flex: 1;
}

.bio h2 {
  margin-top: 0;
}
.contact {
  margin-top: 3rem;
  max-width: 600px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact label {
  font-weight: bold;
}

.contact input,
.contact textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact button {
  padding: 0.75rem;
  background-color: black;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #333;
}



@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
  }

  nav a {
    font-size: 1rem;
    display: block;
    text-align: center;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .gallery {
    padding: 0.5rem;
    gap: 5px;
  }

  .contact form input,
  .contact form textarea {
    width: 100%;
    box-sizing: border-box;
  }
}
