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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: #1B1725;
}

nav {
  background: #1f1f1f;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: calc(100vh - 160px);
}

.hero {
  text-align: center;
  padding: 3rem 0;
  background: #1B1725;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
}

.profile-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1.5rem;
  border: 5px solid #e54b4b;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  text-decoration: 4px underline #e54b4b;
  text-underline-offset: 12px;
}

.description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.8;
}

.timeline {
  background: #1B1725;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-year {
  font-weight: bold;
  font-size: 1.2rem;
  color: #e54b4b;
  min-width: 80px;
}

.timeline-content {
  flex: 1;
  padding-left: 2rem;
  border-left: 3px solid #e54b4b;
}

.timeline-content p {
  font-size: 1.1rem;
  color: #ffffff;
}

.hobbies {
  padding: 2rem 0;
  text-align: center;
}

.hobbies h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ffffff;
  text-decoration: 4px underline #e54b4b;
  text-underline-offset: 12px;
}

.hobby-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.hobby-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  color: white;
  text-decoration: none;
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  transition: background 0.3s, transform 0.3s;
  background: rgba(229, 75, 75, 0.15);
  border: 2px solid rgba(229, 75, 75, 0.4);
  min-width: 200px;
}

.hobby-button:hover {
  background: rgba(229, 75, 75, 0.25);
  transform: translateY(-5px);
  border-color: rgba(229, 75, 75, 0.6);
}

.hobby-button:visited {
  color: white;
}

.hobby-icon {
  font-size: 2.5rem;
}

.hobby-name {
  font-size: 1.3rem;
  font-weight: 600;
}

.content-page {
  background: #1B1725;
  padding: 3rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-decoration: 4px underline #e54b4b;
  text-underline-offset: 12px;
}

.content-page h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #ffffff;
}

.content-page p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.content-page ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content-page li {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #e54b4b;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.back-link:hover {
  opacity: 0.7;
}



footer {
  background: #1B1725;
  color: white;
  padding: 3rem 2rem 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: white;
}

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

.social-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.social-link:visited {
  color: white;
}

.social-handle {
  font-size: 0.95rem;
  font-weight: 500;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.copyright {
  margin-top: 2rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

 .photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.photo-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.photo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.photo-caption {
  padding: 0.75rem;
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  background: rgba(229, 75, 75, 0.1);   /* subtle red tint */
  margin: 0;
  line-height: 1.3;
}

.photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(229, 75, 75, 0.3);
}

.photo-item p {
  margin: 0;
}


/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(229, 75, 75, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.lightbox-close:hover {
  color: #e54b4b;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  max-width: 700px;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-content {
    padding-left: 0;
    padding-top: 0.5rem;
    border-left: none;
  }
  
  .hobby-links {
    flex-direction: column;
    align-items: center;
  }

 

}
