
/* Main image fade-in */
#main-image {
  opacity: 0;
  transition: opacity 0.35s ease;
}

#main-image.loaded {
  opacity: 1;
}

/* Thumbnail hover effect */
.thumbnail-row img:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Existing styles kept mostly unchanged */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: cyan;
  color: rgb(52, 0, 0);
}

body {
  font-family:
  -apple-system,
  BlinkMacSystemFont,
  "Segoe UI",
  Roboto,
  Helvetica,
  Arial,
  sans-serif;
  background: #1e1e1e;
  color: #f2f2f2;
}

/* Grid layout */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  height: 100vh;
}

/* Header */
.header {
  grid-column: 1 / -1;
  background: #2b2b2b;
  display: flex;
  align-items: center;
  padding: 0 40px;
  height: 120px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.03);
}

.header h1 {
  font-family: "Mukta", sans-serif;
  font-size: 48px; /* was 32px */
  font-weight: 800;
  color: rgb(245, 243, 225);
}

h3 {
  font-size: 24px;
}

.content-inner {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.content-inner.is-fading {
  opacity: 0;
  pointer-events: none;
}

.content-inner.is-fading::after {
  content: "Loading…";
  display: block;
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
  background: #252525;
  padding: 32px 24px 24px;
  overflow-y: auto;
  display: flex;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar h2 {
  font-size: 24px;
  margin: 24px 0 8px;
  color: #cccccc;
}

.project-nav li {
  list-style: none;
  padding: 10px 14px;
  margin-bottom: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s; 
}

.project-nav li:hover {
  opacity: .5;
}

.project-nav li.active {
  background:#1e1e1e;
  font-weight: bold;
  color: #efece9;
}

.section-divider {
  border: 0;
  border-top: 1px solid #bababa; /* subtle line color */
  margin: 16px 0;             /* space above and below the line */
}

.about-link {
  margin-top: auto;
  align-self: center;
  padding: 8px 12px;
  text-decoration: none;
}

  a {
    color: white;
  }

  a:visited {
    color: white;
  }
  
  a:hover {
    opacity: .5;
  }

/* Main Content */
.content {
  padding: 32px;
  overflow-y: auto;
}

.project-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.project-subtitle {
  margin: 1rem 0;
}

.sub-section {
  font-family: "Mukta", sans-serif;
  font-size: 16px;
  font-weight: 400;
  opacity: .7;
  margin-top:10px;
}

.thumbnail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.thumbnail-row img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: #444;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  align-content: center;
}

.thumbnail-row img.active {
  border-color: #ff8c2a;
}

.no-thumbs {
  color: #aaa;
  font-size: 14px;
  padding: 8px 12px;
}

/* Gallery */
.gallery h2 {
  font-size: 32px;
  margin-bottom: 4px;
}

.gallery h4 {
  font-size: 20px;
  opacity: 0.7;
  margin-bottom: 16px;
}

.gallery-image {
  background: #242424;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  justify-content: center;
}

.gallery-image img {
  width: 100%;
  max-width: 1200px;
  max-height: 675px;
  object-fit: contain;
  display: block;
  margin: 0, auto;
}

.nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.nav-zone.left {
  left: 0;
  justify-content: flex-start;
}

.nav-zone.right {
  right: 0;
  justify-content: flex-end;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 30, 30, 0.7);
  border: none;
  color: #c6c6c6;
  font-size: 32px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-zone:hover .gallery-arrow {
  opacity: 1;
}

.description {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 8px;
}

/* Lightbox overlay */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox.active {
  display: flex; /* show when .active is added */
}

.lightbox-image {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.lightbox-caption {
  margin-top: 12px;
  color: #ccc;
  font-size: 16px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 2;
}

.lightbox-close:hover {
  color: #ff8c2a;
}

.pdf-embed {
  width: 100%;
  height: 80vh;         /* responsive height */
  margin-top: 32px;
  background: #242424;
}

.pdf-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   ABOUT PAGE (ADDITIVE ONLY)
   ========================= */

/* Use the same grid layout, but without sidebar */
.about-layout {
  grid-template-columns: 1fr;
}

/* About main content area */
.about-content {
  /* Center the about block within the viewport, accounting for the header */
  min-height: calc(100vh - 120px); /* update 120px if header height changes */
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center;/* horizontal centering */
  padding: 48px 64px;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative; /* allow absolutely positioning the back link */
}  

/* Return link */
.back-link {
  position: absolute;
  top: 16px;
  left: 64px;
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0.85;
}

.back-link:hover {
  opacity: 0.5;
} 

/* Two-column layout */
.about-grid {
  display: grid;
  grid-template-columns: 520px 1fr; /* increased to make portrait larger */
  gap: 12px;
  align-items: center;    /* center columns vertically relative to each other */
  justify-items: center;
}  

/* Portrait container */
.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 520px; /* increase portrait size */
  width: 100%;      /* responsive downscaling */
  height: auto;
  display: block;
  transition: opacity 0.15s ease;
}

/* Text column */
.about-text {
  max-width: 620px;
}

/* Section spacing */
.about-section {
  margin-bottom: 48px;
}

/* Headings reuse your typography scale */
.about-section h2 {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 700;
}

/* Body text */
.about-section p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 14px;
}

/* Contact links */
.about-section a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.about-section a:hover {
  border-bottom-color: #ff8c2a;
}

/* Responsive fallback */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    text-align: center;   /* center text when stacked */
  }

  .about-content {
    padding: 32px;
  }

  /* Move the back link inward on smaller screens */
  .back-link {
    left: 32px;
    top: 8px;
  }
}
