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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #ffffff;
}

.hero { 
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #fffff2 0%, #e3f1f5 20%, #f5fdf5 75%, #fce8f3 100%);
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero p {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 40px;
}

.image-grid {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.image-box {
  width: 270px;
  height: 270px;
  background: #ccc;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
}

.image-box-default {
  width: 100%;
  height: 100%;
  background: #ccc;
  transition: opacity 0.3s ease;
}

.image-box-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-box-hover2 {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.85);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
      font-size: 13px;
      text-align: center;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

.image-box:hover .image-box-hover {
  opacity: 1;
}

/* these are the child boxes for the 5 hoverable pics */

/* default images  */
.image-box:nth-child(3) .image-box-default {
  background-image: url('images/Eunice_Lee.png');
  background-size: cover;
  background-position: center;
}

/* hover images (what shows on hover) */
.image-box:nth-child(3) .image-box-hover {
  background-image: url('images/eunice cam.jpg');
  background-size: cover;
  background-position: center;
}

/* 2 */
.image-box:nth-child(2) .image-box-default {
  background-image: url('images/Guitar.png');
  background-size: cover;
  background-position: center;
}

.image-box:nth-child(2) .image-box-hover {
  background-image: url('images/music.jpg');
  background-size: cover;
  background-position: center;
}

/* 1 */
.image-box:nth-child(1) .image-box-default {
  background-image: url('images/Tech.png');
  background-size: cover;
  background-position: center;
}
.image-box:nth-child(1) .image-box-hover {
  background-image: url('images/desk.jpg');
  background-size: cover;
  background-position: center;
}

/* 4 */
.image-box:nth-child(4) .image-box-default {
  background-image: url('images/Flowers.png');
  background-size: cover;
  background-position: center;
}
.image-box:nth-child(4) .image-box-hover {
  background-image: url('images/nature.jpg');
  background-size: cover;
  background-position: center;
}

/* 5 */
.image-box:nth-child(5) .image-box-default {
  background-image: url('images/Build.png');
  background-size: cover;
  background-position: center;
}
.image-box:nth-child(5) .image-box-hover {
  background-image: url('images/robot.jpg');
  background-size: cover;
  background-position: center;
}


.tagline {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.tagline em {
  font-style: italic;
}

main {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 50px;
}

.project {
  margin-bottom: 100px;
}

.project h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 10px;
}

.project-description {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tag {
  background: #ddd;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
}

.project-image {
  width: 100%;
  height: auto;
  background: #ccc;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s;
  overflow: hidden;
  border-radius: 8px;
}

.project-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

footer {
  background: #dee4d9;
  padding: 40px 50px;
  margin-top: 100px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-style: italic;
  color: #333;
}

.footer-right {
  display: flex;
  gap: 30px;
}

.footer-right a {
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

.footer-right a:hover {
  opacity: 0.6;
}

/* Tablet and smaller */
@media (max-width: 1024px) {
  main {
    padding: 0 30px;
  }

  footer {
    padding: 40px 30px;
  }
}

/* Mobile landscape and portrait */
@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 42px);
  }

  .hero p {
    font-size: clamp(15px, 4vw, 18px);
  }

  .image-grid {
    gap: 10px;
    padding: 0 10px;
  }

  .image-box {
    width: clamp(90px, 22vw, 130px);
    height: clamp(90px, 22vw, 130px);
  }

  .image-box::before {
    font-size: clamp(11px, 2.5vw, 13px);
  }

  .tagline {
    font-size: clamp(15px, 4vw, 18px);
    padding: 0 15px;
  }

  main {
    padding: 0 20px;
    margin: 50px auto;
  }

  .project {
    margin-bottom: 60px;
  }

  .project h2 {
    font-size: clamp(24px, 5vw, 32px);
  }

  .project-image {
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  footer {
    padding: 30px 20px;
  }
}

/* Small mobile */
@media (max-width: 480px) {


  .image-box {
    width: clamp(75px, 18vw, 100px);
    height: clamp(75px, 18vw, 100px);
  }

  .project-image {
    height: 250px;
  }

  .project-tags {
    flex-wrap: wrap;
  }
}

/* Very small screens */
@media (max-width: 360px) {

  .hero {
    padding: 30px 10px;
  }

  .image-grid {
    gap: 8px;
  }

  main {
    padding: 0 15px;
  }

  .project-image {
    height: 200px;
  }
}
