:root {
  --font-primary: 'Avenir', sans-serif;
  --color-text: #1a1a1a;
  --color-accent: #c90000;
  --color-bg: #ffffff;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
    color: #3232FF;
    font-family: Avenir, sans-serif;
    font-weight: bolder;
    font-size: 42px;
    padding: 0;
}
.gradient-fade {
    position: fixed;
    top: 0;
    left: 0;
    height: 120px;
    width: 100%;
    margin: 0 auto;
    background-image: linear-gradient(white, white, transparent 100%);
    z-index: 999;
}
.container {
    max-width: 90%;
    margin: 0 auto;
    padding-top: 150px;
}
.container p {margin-bottom: 3.5rem; line-height: 3.75rem; word-spacing: .10rem}

/* --- Header --- */
.scroll-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: white;
  z-index: 1000;
}
.scroll-container {
  position: relative;
  width: 100%;
  height: 100%;
}
#scroll-name {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  white-space: nowrap;
  font-weight: bold;
  transition: transform 0.05s ease-out;
}
.line {
  position: absolute;
  top: 50%;
  height: 3px;
  background-color: #3232FF;
  transform: translateY(-50%);
  transition: width 0.05s ease-out;
}
.left-line {left: 0;}
.right-line {right: 0;}
/* --- END ---*/

/*--- video wrapper ---*/
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* --- END ---*/

/*--- Overlay ---*/
.placeholder-link {
  color: transparent;
  -webkit-text-stroke: 1px #3232FF;
  text-decoration: none;
  cursor: pointer;
letter-spacing: .10rem;
}
.placeholder-link:hover {color: cyan;
}

a:focus,
.placeholder-link:focus,
.close-overlay:focus {
  outline: 2px dashed #c90000;
  outline-offset: 4px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  padding: 4rem 2rem 2rem; /* enough top padding so content never hits the top */
    overflow-y: auto; /* this makes it scrollable */
}
.overlay.active{
    display: block; 
    animation: fadeIn 1.25s ease-out forwards;
}
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.overlay-content {
    position: relative;
    z-index: 1;
  max-width: 800px;
  margin: 0 auto .25rem auto; /* space at the bottom too */
  font-size: 1.25rem;
  text-align: center;
    
}
.overlay-content h2 {
  text-align: center;
    font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.overlay-content .sample {
  margin-top: 1rem;
}
.overlay img {
  max-width: 100%;
  height: auto;
  margin-top: 1rem;
}
.sample-caption {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #333;
}
.close-overlay {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #3232FF;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 99999;
  padding: 0.5rem;
  border-radius: 10%;
    display: none;
}
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
/*--- END ---*/

/*--- Written Project ---*/
.project-page {
    display: flex;
    width: 100%;
    max-width: 800px; /* fits nicely in the overlay */
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
}
.boxed-page {
    background: white;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 0 7px rgb(0,0,0,0.2);
    border-radius: 6px;
}
.intro-page {
    margin-bottom: 2.25rem;
    margin-top: 5rem;
}
.page-content {
    font-size: .95rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.6;
    color: #333;

}
.project-page h2 { 
    font-size: 1.5rem;
}
.project-page h3 {
    margin-top: 0;
    color: lightgray;
    font-size: 1rem;
}
.project-page p {
    margin: 0.25rem 0.25rem 1.25rem 0.25rem; 
    line-height: 1.75rem;
}
.intro-page p {
    color: #7F7FFF;
}
.intro-page h2 {
    color: #0000B2;
}
.centered-text {
    display: block; 
    text-align: center; 
    margin: 10px 0;
}
.tab-container {
    display: flex; 
    align-items: baseline; 
    gap: 10px; 
    flex-wrap: nowrap;
}
.label {
    min-width: 60px; 
    text-align: left; 
    font-weight: bold;
} 
.tabbed-text {
    margin: 0; 
    flex: 1; 
    margin-left: 30px; 
    text-indent: 0;
}
figure { 
    margin-bottom: 3rem;
}
figcaption {
    font-size: .85rem;
    color: gray;
}
/*--- END ---*/

a {
    color: #3232FF;
    text-decoration: none;
}
footer {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #3232FF;
}
/*--- Mobile View Imgs ---*/
.fullscreen-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  cursor: zoom-out;
}

.fullscreen-img img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}
/*--- END ---*/

/*--- Media Query ---*/
@media (max-width: 768px) {
body {
    font-size: 24px;
}
h1 {
    font-size: 1.8rem;
}
h2 {
    font-size: 1.4rem;
}
h3 {
    font-size: 1.2rem;
}
.container {
    padding: 8rem 1rem;
    margin: 0;
  }
.container p { 
    line-height: 2.5rem;
}
.overlay {
    position: fixed;
    inset: 0;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);

}
.overlay p{
    line-height: 1.5rem;
}
  .overlay-content {
    width: 100%;
    max-width: none;
    border-radius: 0;
    padding: 1rem 1rem;
    box-shadow: none;
  }
  .project-page {
    padding: 1rem .35rem;
  }

/* Adjust close button positioning */
  
    .close-overlay {
    top: .25rem;
    right: .25rem;
  }
.sample-caption {
    font-size: 0.85rem;
}
  footer {
    font-size: .75rem; 
    margin-bottom: 1rem;
}
}
/*--- END ---*/