:root {
  --text-shadow: 
  0 0 1px black,
  0 0 2px black,
  0 0 3px black,
  0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 0 0 4px black, 
  0 0 5px black, 0 0 5px black, 0 0 5px black, 0 0 5px black, 0 0 5px black, 0 0 5px black, 
  0 0 6px black, 0 0 6px black, 0 0 6px black, 0 0 6px black, 0 0 6px black, 0 0 6px black, 
  0 0 7px black, 0 0 7px black, 0 0 7px black, 0 0 7px black, 0 0 7px black, 0 0 7px black; 
  --font-size-base: 16px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100vw;
}

html {
  overflow-x: hidden !important;
  width: 100vw;
  max-width: 100vw;
}

html, body {
  background-color: #000;   /* keep the base black */
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--font-size-base);
  text-shadow: var(--text-shadow);
  overflow-x: hidden !important;
  transition: all var(--transition-speed) ease;
  width: 100vw;
  max-width: 100vw;
}

a[href^="mailto"] {
  color: inherit;
  text-decoration: none;
}

a[href^="mailto"]:hover {
  text-decoration: underline;
  text-shadow:
    0 0 2px white,
    0 0 4px white,
    0 0 6px white;
}

.large-text a {
  color: inherit;
  text-decoration: none;
}

.large-text a:hover {
  text-decoration: underline;
  text-shadow:
    0 0 2px white,
    0 0 4px white,
    0 0 6px white;
}

/* Utility */
.glow-text {
  text-shadow:
    0 0 1px white,
    0 0 2px white,
    0 0 3px white,
    0 0 4px white,
    0 0 5px white;
}

/* Navigation Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  pointer-events: none;
  transition: all var(--transition-speed) ease;
}

.top-bar > * {
  pointer-events: all;
}

.nav-left {
  display: flex;
  align-items: center;
  position: relative;
  transition: all var(--transition-speed) ease;
}

.name-container {
  position: relative;
}

.menu-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.menu-label::-webkit-details-marker {
  display: none;
}

.arrow {
  display: inline-block;
  transition: all var(--transition-speed) ease;
  margin-right: 10px;
  font-size: 1.6em;
  font-weight: 800;
}

.menu-label:hover .arrow {
  text-shadow:
    0 0 2px white,
    0 0 4px white,
    0 0 6px white,
    0 0 8px white;
}

details[open] .arrow {
  transform: rotate(90deg);
  text-shadow: 
    0 0 2px white,
    0 0 4px white,
    0 0 6px white,
    0 0 8px white;
}

.name {
  font-size: 1.8em;
  font-weight: bold;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-speed) ease;
}

.name-container[open] .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 1.6em;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.dropdown a:hover {
  background-color: transparent;
  text-shadow: 
    0 0 2px white,
    0 0 4px white,
    0 0 6px white,
    0 0 8px white;
}

.nav-right {
  font-size: 1.8em;
  font-weight: bold;
  text-align: right;
  align-self: center;
  transition: all var(--transition-speed) ease;
}

.page-subtitle {
  font-size: .6em; 
  font-weight: normal;
  opacity: 0.7;
  margin-top: 5px;
  transition: all var(--transition-speed) ease;
}

.subtitle-link {
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.subtitle-link:hover {
  opacity: 1;
  text-shadow: 
    0 0 2px white,
    0 0 4px white,
    0 0 6px white,
    0 0 8px white;
}

.active-subtitle {
  text-shadow:
    0 0 12px white,
    0 0 14px white;
  color: #fff;
  font-weight: bold;
}

/* Main Content */
.main-content {
  margin-top: 0;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-speed) ease;
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden !important;
}

.content-scroll {
  padding-top: 2px;
  max-height: 100vh;
  overflow-y: visible;
  overflow-x: hidden !important;
  padding-right: 10px;
  transition: all var(--transition-speed) ease;
  width: 100vw;
  max-width: 100vw;
  padding-bottom: 100vh; /* Allow scrolling to show background */
}

/* Video Layout */
.video-preview {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.video-preview video {
  width: calc(100vw - 16px);
  max-width: 100vw;
  height: auto;
  background: black;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 5;
  margin: 0 8px;
  padding: 0;
  box-sizing: border-box;
}

.video-info {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: var(--text-shadow);
  pointer-events: none;
  background: none; 
}

.video-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 80%);
  pointer-events: none;
}

.video-title {
  font-size: 1.4em;
  text-align: left;
}

.video-description {
  font-size: 1.6em;
  opacity: 0.9;
  text-align: right;
}

.shift-top {
  object-position: 50% 14%;
}

/* Work page-specific */

body.work {
  background-image: url('/work/assets/bg/GGW_crop2_dither.webp');
  background-position: 0% 60%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Credits page-specific */
body.credits {
  background-image: url('/work/assets/bg/hello_dither_4.png');
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* About page-specific */

body.about {
  background-image: url('/work/assets/photos/B&W/hello_dither_4.png'); 
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: auto 90vw;
  background-attachment: fixed; /* keeps background fixed while content scrolls */
  background-color: #000;       /* fallback just in case */
}

body.about .main-content {
  min-height: 200vh; /* Creates scroll space for text to move through */
  overflow: visible;
}

body.about .content-scroll {
  padding-bottom: 100vh; /* Add space so text can scroll completely off screen */
}

body.about .text-content {
  margin-bottom: 30px;
  padding: 0 30px;
  padding-top: 120px; /* Space for nav bar */
  line-height: 1.6;
  white-space: pre-line; /* preserve line breaks */
}

/* Remove the .about-image class since we're using background now */

/* About page image (as <img> tag, not background) */
.about-image {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  margin-top: 100vh; /* Start image below the viewport so it scrolls up */
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    padding: 15px 20px;
  }

  .nav-right {
    font-size: 1em;
  }

  .page-subtitle {
    font-size: 0.9em;
  }

  .main-content {
    margin-top: 0;
  }

  .content-scroll {
    max-height: 100vh;
  }
  
  .text-content {
    padding: 0 20px;
  }
  
  .video-info {
    padding: 0 20px;
  }
  
  .placeholder-row {
    flex-direction: column;
    gap: 15px;
  }

  .email-block a {
    font-size: 2.0rem;
  }

body.work {
  background-position: 80% 70%;
}

.video-title {
  font-size: 0.9em;
  text-align: left;
}

.video-description {
  font-size: 0.9em;
  opacity: 0.9;
  text-align: right;
}
  
.placeholder-item {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  font-size: 1rem; /* Smaller text if needed */
}
  
  .placeholder-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}