body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #222;
}

header {
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('banner.PNG') center/cover no-repeat;
  color: white;
}

header h1 {
  font-size: 6rem;
  margin: 0;
}

.hobby-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

#hobbies {
  max-width: 1100px;
}

.hobby {
  flex: 1 1 0;
  text-align: center;
}

.hobby img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

header p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

html {
  scroll-behavior: smooth;
}

nav {
  display: flex;
  justify-content: space-evenly;
  font-size: 2.0rem;
  gap: 3rem;
  padding: 2rem;
  background: #333;
}

nav a {
  color: white;
  text-decoration: none;
}

section {
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
  padding: 0 1rem;
  scroll-margin-top: 2rem;
}

#projects {
  max-width: 1000px;
}

.project-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project {
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
}

.project-link {
  color: inherit;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.project-link:hover h3 {
  text-decoration: underline;
}

.project-link img {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-link:hover img {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
}

.project-header {
  height: 30vh;
  background: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.project-detail {
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
}

.project-detail img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-detail img.float-img {
  float: right;
  width: 140px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 8px;
}

.project-detail .float-img-caption {
  float: right;
  width: 140px;
  clear: right;
  margin: -0.5rem 0 1rem 1.5rem;
  font-size: 0.75rem;
  color: #666;
  font-style: italic;
}

.inprogress-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.inprogress {
  flex: 1 1 0;
  text-align: center;
}

.inprogress img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

#in-progress {
  max-width: 1100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #333;
  margin-top: 1.5rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
  color: #000;
}

footer {
  text-align: center;
  justify-content: space-evenly;
  padding: 2rem;
  background: #f4f4f4;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1rem;
}

.project-detail .meta {
  font-style: italic;
  color: #666;
  margin-bottom: 1.5rem;
}

.project-detail h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.project-detail h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-detail ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.project-detail li {
  margin-bottom: 0.5rem;
}

.detail-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}

.detail-images img {
  flex: 1 1 200px;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}

.image-caption {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.float-img {
  float: right;
  width: 260px;
  margin: 0 0 1rem 1.5rem;
  border-radius: 8px;
}

.float-img-caption {
  float: right;
  width: 260px;
  clear: right;
  margin: -1rem 0 1rem 1.5rem;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

@media (max-width: 600px) {
  .float-img,
  .float-img-caption {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

@media (max-width: 600px) {
  .detail-images img {
    height: 140px;
  }
}

@media (max-width: 600px) {

  header h1 {
    font-size: 2.8rem;
  }

  header p {
    font-size: 1rem;
  }

 .hobby img {
    height: 90px;
  }
  
  nav {
    font-size: 0.85rem;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  section {
    width: 95%;
    padding: 0 0.5rem;
  }

  .project-row {
    gap: 0.75rem;
  }

  .project {
    flex: 1 1 90px;
    max-width: 110px;
  }

  .project img {
    height: 90px;
  }

  .project h3 {
    font-size: 0.75rem;
    margin: 0.4rem 0;
  }

  .project p {
    display: none;
  }

  .project-header h1 {
    font-size: 1.6rem;
  }

  .back-link svg {
    width: 22px;
    height: 22px;
  }

  .social-links svg {
    width: 22px;
    height: 22px;
  }

}
