p,
h1,
h2,
h3,
h4,
h5,
h6,
button {
  font-family: "Roboto", serif;
}

body {
  background-color: #f5f5f9;
  background-size: cover;
  width: auto;
  overflow-x: hidden;
  font-family: "Roboto", serif;
  margin: 0px;
}

.profile {
  background-color: #1d539f !important;
  text-align: center;
  height: 320px;
  margin-bottom: 50px;
}

.profile h1 {
  font-size: 50px;
  font-weight: 700;
  color: white;
}

.profile img {
  border-radius: 50%;
  max-width: 100%;
  max-height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  padding: 20px;
}

.profile .profile-picture {
  margin-bottom: 30px;
  height: 200px;
}

.banner {
  padding: 20px 0px 50px 0px;
  height: 150px;
  background-color: #1d539f;
}

.banner .logo {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
}

.banner .title {
  color: white;
  font-size: 50px;
  font-weight: 700;
}

/* navbar styling */

.nav-bar {
  width: 100%;
  display: inline-block;
  background-color: #1c539f;
  /* font-family: "Roboto", serif;
    font-weight: 700 !important; */
  padding-top: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin: auto;
}

.nav-logo img {
  width: 200px;
}

.nav-content nav {
  display: block;
  width: 100%;
  text-align: right;
  padding-top: 0px;
  padding-right: 0px;
}

.nav-content nav a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: inline-block;
  font-weight: 700;
}

.nav-content nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-content nav a.active {
  border-bottom: 3px solid white;
}

.page-content {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

/* Social links in profile section */
.social-links {
  display: flex;
  justify-content: center;
  /* gap: 3px; */
  margin-top: 10px;
  padding-bottom: 10px;
}

.social-icon {
  width: 42px;
  height: 42px;
  /* invert makes dark SVG icons white to show on the blue profile background */
  /* filter: invert(1); */
  transition:
    transform 0.1s,
    opacity 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* list-section applies to ALL sections (work, education, hobbies) */
.list-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.list-section h2 {
  color: #1d539f;
  margin-top: 0;
  margin-bottom: 10px;
}

.list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.list-item h3 {
  margin: 0 0 8px;
}

.list-item .subtitle {
  margin: 0 0 4px;
  font-weight: 500;
}

.list-item .date {
  margin: 0 0 8px;
  color: #2e2d2d;
  font-size: 1rem;
}

.list-item p {
  margin: 0;
  line-height: 1.5;
}

/* Hero video section — centered, 16:9 ratio, max width so it doesn't 
   stretch too wide on large screens */
.hero-video-section {
  margin-bottom: 24px;
  text-align: center;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 24px; /* was "0 auto" — added 24px bottom margin */
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-video-wrapper iframe {
  position: absolute; /* fills the aspect-ratio wrapper completely */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* GitHub link inside video card */
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1d539f;
  text-decoration: none;
}

.github-link:hover {
  text-decoration: underline;
}

/* travel page */

.travel {
  padding: 20px;
}

.travel h1 {
  margin-bottom: 20px;
}

#travel-map {
  height: 500px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* hobbies page */

.podcast-embed {
  max-width: 700px;
  margin: 16px auto 0;
  padding: 0 24px 24px;
}

.hobbies p {
  text-align: center;
  /* padding: 20px; */
}

.hobbies h1 {
  text-align: center;
  padding: 20px;
}

/* Hobby cards in a responsive grid */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.hobby-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.hobby-card:hover {
  transform: scale(1.03);
}

.hobby-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  background-color: #f5f5f9;
  display: block;
}

.hobby-card .card-info {
  padding: 10px;
  background: white;
}

.hobby-card h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
}

.hobby-card p {
  margin: 0;
  font-size: 13px;
  color: #666;
}

/* Play button overlay on video thumbnails */
.video-thumb-wrapper {
  position: relative;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Timeline page */

.timeline {
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.timeline h1 {
  text-align: center;
  padding: 20px;
}

.timeline-form {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-form label {
  font-weight: 500;
  margin-top: 12px;
}

.timeline-form input,
.timeline-form textarea {
  font-family: "Roboto", serif;
  font-size: 1rem;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  resize: vertical;
}

.timeline-form input:focus,
.timeline-form textarea:focus {
  outline: none;
  border-color: #1d539f;
}

.timeline-form button {
  margin-top: 16px;
  align-self: flex-start;
  background-color: #1d539f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.timeline-form button:hover {
  opacity: 0.85;
}

.timeline-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-post {
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 16px;
}

.timeline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-post-body {
  flex: 1;
  min-width: 0; /* lets long content/URLs wrap instead of overflowing the flex item */
}

.timeline-post-body strong {
  color: #1d539f;
}

.timeline-post-body p {
  margin: 6px 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.timeline-post-date {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.timeline-delete-btn {
  background: none;
  border: 1px solid #d9534f;
  color: #d9534f;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.timeline-delete-btn:hover {
  background-color: #d9534f;
  color: white;
}


/* Lightbox */

/* Hidden by default, covers full screen when active */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
}

/* YouTube iframe inside lightbox — 16:9 ratio */
.lightbox-content iframe {
  width: 80vw;
  height: 45vw;
  max-height: 80vh;
  border: none;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.youtube-watch-link {
  text-align: right;
  margin-top: 8px;
}

#youtube-link {
  color: white;
  font-size: 14px;
}
