/* 1. FORCE CORE LAYERS TO FULL SCREEN HEIGHT */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  /* CHANGE: Removed the pitch black background so your white video isn't dulled out */
  background-color: transparent; 
  overflow-x: hidden;
}

hr {
  margin: 10rem 0;
}

/* 2. REINFORCED FIXED BACKGROUND VIDEO */
#bg-video {
  position: fixed; /* Keeps video locked to screen position */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -100; /* Deep negative index forces it to the absolute bottom layer */
  pointer-events: none; /* Prevents video clicks from interfering with text */
}

/* 3. REINFORCED VIDEO OVERLAY DARKENER */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.15); 
  z-index: -99; /* Sits exactly one layer above the video */
  pointer-events: none;
}

/* 4. CRITICAL LAYER FIX: THE CONTENT CONTAINER */
.page-content {
  position: absolute; /* Changed from relative to absolute to guarantee floating */
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 10; /* High positive index guarantees it sits on top of the negative layers */
  display: flex;
}

/* Left Sidebar Menu styling */
.sidebar {
  position: fixed;
  /* width: 0px; */
  height: 100vh;
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  /* background: rgba(255, 255, 255, 0.03); */
  /* backdrop-filter: blur(15px); */
  /* border-right: 1px solid rgba(255, 255, 255, 0.1); */
  padding: 40px 10px 70px;
}

.menu-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 25px;
  padding-left: 10px;
}

.nav-menu {
  height: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-menu li:last-child {
  margin-top: auto;
}

.nav-menu li a {
  font-weight: thin;
  display: block;
  color: #909090;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 15px;
  /* border-radius: 6px; */
  /* transition: all 0.3s ease; */
}

.nav-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #000000;
  /* padding-left: 20px; */
}

/* Right Content Area Box styling */
.main-body-container {
  /* margin-left: 160px; /\* Offset width matching sidebar precisely *\/ */
  flex: 1;
  padding: 40px;
  padding-left: 340px;
  /* CHANGE: Forces the text in the first section to be a high-contrast dark slate color */
  color: #1a1a1a; 
}

.content-block {
  /*padding: 40px 0;*/
  max-width: 1200px;
}

h1 {
  font-size: 2rem;
  color: #00000; 
  margin-bottom: 10px;
  font-variant: small-caps;
}

h2 {
  font-size: 1.3rem;
  color: #00000;
  font-weight: 400;
  margin-bottom: 8px;
  font-variant: small-caps;
}

h3 {
  font-weight: normal;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: #A9A9A9;
  margin-bottom: 20px;
  font-variant: small-caps;
}

p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #00000;
  margin-bottom: 20px;
  text-align:justify;
}

.footnote {
  font-size: 0.95rem;
  color: #000000;
  margin-top: 30px;
  /* border-left: 3px solid #66fcf1; */
  padding-left: 15px;
}

/* Horizontal spacing lines between major segments */
/*.section-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0);
  margin: 60px 0;
}*/

/* Media Gallery Grid Layout */
.media-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.media-grid-column {
    flex-direction: column;
    align-items: center;
}

/* Profile / Paper Card Stacking Content Element */
.profile-card {
  display: flex;
  flex-direction: column; /* Locks Thumbnail Above the Text Link */
  align-items: flex-start;
  width: 160px; /* Limits maximum item span width */
}

.thumbnail-img {
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px; /* Generates space between image bottom and title top */
  transition: transform 0.3s ease;
}

.thumbnail-img:hover {
  transform: scale(1.04);
}

.pdf-text-link {
  color: #000000;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.4;
}

.pdf-text-link:hover {
  text-decoration: underline;
  font-weight: bold;
}

@media (max-width: 640px) {
  .page-content {
    flex-direction: column;
  }

  .sidebar {
    position: initial;
    height: initial;
  }

  .main-body-container {
    padding: 40px;
  }
}
