body {
  margin: 0;
  font-family: cursive;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
}

.hero {
  background: linear-gradient(to top, #9b05ff, #000000);
  color: #ffffff;
  padding: 100px 50px;
  text-align: center;
}

.profile-pic {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid #bb65d2;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgb(0, 0, 0, 0.2);
}

.hero h1 span {
  color: #fbff00;
}

.btn {
  display: inline-block;
  margin-top: 100px;
  padding: 10px 25px;
  background: #f7f7f7;
  color: #8c00ff;
  border-radius: 25px;
  text-decoration: underline;
  font-weight: 900;
  transition: 0.3s;
}

.btn:hover {
  background: #fbff00;
  color: #000000;
}

section {
  padding: 40px 20px;
  max-width: 800px;
  margin: auto;
}

h2 {
  color: #8c00ff;
  border-bottom: 2px solid #8c00ff;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

a {
  color: #0400ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#contact-form button {
  background-color: #007acc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#contact-form button:hover {
  background-color: #005c99;
}
#projects {
  padding: 50px 20px;
  background: #f3f3f3;
  text-align: center;
}

#projects h2 {
  font-size: 2rem;
  color: #7b00ff;
  margin-bottom: 20px;
}

#projects ul {
  list-style-type: none;
  padding: 0;
  max-width: 800px;
  margin: auto;
  text-align: left;
}

#projects li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.project-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-card p {
  padding: 20px;
  margin: 0;
  font-weight: bold;
  color: #000000;
  text-align: center;
}
<section id="projects" class="project-gallery">
  <h2>My Designs</h2>
  <div class="gallery-grid">

    <!-- Example Project Card -->
    <div class="project-card">
      <img src="design1.jpg" alt="Poster Design 1">
      <p>Promotional Poster – AI x Fashion</p>
    </div>

    <div class="project-card">
      <img src="template1.jpg" alt="Template Design 1">
      <p>Instagram Carousel Template</p>
    </div>

    <!-- Add more cards like these -->

  </div>
</section>
.project-gallery {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.project-gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #6a00ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.project-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #222;
  word-wrap: break-word;
  line-height: 1.3;
  max-width: 100%;
}

.hero {
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card p {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 100%;
  margin: 0;
  padding: 10px;
  transition: transform 0.3s;
  transform: translateY(100%);
}

.project-card:hover p {
  transform: translateY(0%);
}
/* Lightbox modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
  border-radius: 10px;
}

.lightbox:target {
  display: flex;
}
.hero h1, .hero p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  animation-delay: 0.3s;
}

.hero p {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
