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

/* Body font */
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
}

/* Name top-left fixed */
.name-top-left {
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ddd;
  z-index: 1000;
}

.name-top-left a {
  color: inherit;
  text-decoration: none;
}

.name-top-left a:hover {
  text-decoration: underline;
}

/* Navigation - top right fixed */
nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: transparent !important;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Default nav link color (dark) */
nav ul li a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #0077cc;
}

/* Light color for index page nav links */
.index-page nav ul li a {
  color: #ddd;
}

/* Research page link colors */
.research-page nav ul li a.dark-link {
  color: #444;
}

.research-page nav ul li a.light-link {
  color: #ddd;
}

/* Banner styling */
.banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

/* Photo fills the banner */
.banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.7);
}

/* Banner text */
.banner-text {
  position: absolute;
  bottom: 30px;
  left: 20px;
  z-index: 1;
  color: #ddd;
}

.banner-text h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
}

/* About section */
.about {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 20px;
  font-size: 1.1rem;
  color: #222;
}

/* Dark text color */
.dark-text,
.dark-link {
  color: #444 !important;
}

/* Banner text for Research page */
.research-page .banner-text h2 {
  color: #444;
}

/* Tag below titles*/
.status {
  font-size: 0.95rem;
  color: #888;
  font-weight: normal;
  margin-left: 0.5rem;
}

/* Skill tags under descriptions */
.skill-tag {
  margin-left: 1.3rem;
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* Responsive image grid */
.gallery-grid {
  column-count: 3;
  column-gap: 16px;
  padding: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-media {
  margin-top: 1em;
  text-align: center;
}

.project-image, .project-video {
  max-width: 70%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.media-caption {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.5em;
  margin-bottom: 3.5em;
}

/* Email */
.contact-footer {
  text-align: center;
  margin-top: 2em;
  padding: 1em 0;
}

.email-icon {
  font-size: 1.8em;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.email-icon:hover {
  color: #0077b6;
}

/* Lightbox content wrapper */
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

/* Caption text below image */
.lightbox-caption {
  margin-top: 20px;
  max-width: 800px;
  color: #f5f5f5;
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  border-radius: 6px;
}
