/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Inter:wght@400;500&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fefefe;
  color: #222;
}

header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Inter', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #000;
}

.navbar {
  display: flex;
  justify-content: space-between; /* logo left, links centered */
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center; /* centers the nav items */
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #000;
}

main.content {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 2rem;
}

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

.intro h1 {
  font-size: 2.10rem;
  font-family: 'Valiety', serif;
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
}

.profile-photo {
  width: 260px;
  height: 260px;
  /* border-radius: 8px; */
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight {
  margin-top: 3rem;
}

.highlight h2 {
  font-size: 1.75rem;
  color: #333;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #888;
}

.hobbies-layout {
  display: flex;
  gap: 2rem;
}

.hobby-menu {
  width: 200px;
  max-height: 400px;
  overflow-y: auto;
  border-right: 1px solid #ddd;
  padding-right: 1rem;
}

.hobby-menu ul {
  list-style: none;
  padding: 0;
}

.hobby-menu li {
  margin-bottom: 1rem;
  font-weight: bold;
}

html {
  scroll-behavior: smooth;
}

.hobby-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  position: sticky;
  top: 60px; /* sits below navbar */
  background: white;
  padding: 1rem 0;
  z-index: 998;
  border-bottom: 1px solid #ddd;
}

.hobby-tabs a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.hobby-tabs a:hover,
.hobby-tabs a.active {
  background: #eee;
  font-weight: bold;
}

.hobby-section {
  margin-bottom: 3rem;
  scroll-margin-top: 150px; /* offsets navbar and tab bar */
}

.hobby-panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.panel {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.panel:hover {
  transform: translateY(-5px);
  background: #f0f0f0;
}


.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

.hobby-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0 2rem;
  position: sticky;
  top: 60px; /* below navbar */
  background: #fff;
  padding: 0.5rem 0;
  z-index: 999;
  border-bottom: 1px solid #ddd;
}

.hobby-tabs a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
  padding-bottom: 0.2rem;
}

.hobby-tabs a.active {
  border-bottom: 2px solid #000;
}

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

.project {
  margin-bottom: 4rem;
}

.project h2 {
  margin-bottom: 0.5rem;
}

.project p {
  margin-bottom: 1rem;
  color: #444;
}

.project-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-images img {
  width: calc(33% - 0.5rem);
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.project-images img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .project-images img {
    width: 100%;
  }
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 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: 80%;
  border-radius: 8px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
}

.lightbox .close {
  top: 5%;
  right: 5%;
  transform: none;
}

.lightbox .prev {
  left: 5%;
}

.lightbox .next {
  right: 5%;
}