body {
  background-color: #f5f5f5;
  font-family: 'Times New Roman', Times, serif, Arial, sans-serif;
  margin: 0;
  padding: 1.2rem;
  display: flex;
  justify-content: center;
}

.paper {
  background-color: white;
  width: 90vw;          /* almost full screen width on mobile */
  max-width: 800px;     /* desktop max width stays the same */
  padding: 4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  overflow: visible;
}

/* Mobile-specific adjustments */
@media (max-width: 600px) {
  .paper {
    width: 95vw;        /* fill most of the small screen */
    padding: 1rem;      /* smaller padding */
    aspect-ratio: auto; /* ignore A4 proportions */
  }
}

/* Notebook lines */
.line {
  height: 24px; /* line spacing */
  border-bottom: 1px solid #84b5e7; /* thin light blue line */
  position: relative;
  width: 100%;
  z-index: 0;
}

/* Text inside line */
.line-text {
  position: absolute;
  top: 50%;
  padding-left: 1.5ch; 
  transform: translateY(-50%);
  font-size: 16px;
  color: rgb(50, 50, 50);
  margin: 0;
  white-space: nowrap;
}

/* Name top-right */
.name {
  right: 0;
  text-align: right;
}

/* Projects container */
.projects {
  position: relative;
}


/* Staggered indentation for project text */
.project:nth-child(1) .line-text { left: 18ch; } /* starts after 'Graphic Design' */
.project:nth-child(2) .line-text { left: 20ch; }
.project:nth-child(3) .line-text { left: 22ch; }
.project:nth-child(4) .line-text { left: 24ch; }
.project:nth-child(5) .line-text { left: 26ch; }
.project:nth-child(6) .line-text { left: 28ch; }

/* Studio Projects section */
.studio-project:nth-child(1) .line-text { left: 18ch; } /* starts after 'Studio Projects' */
.studio-project:nth-child(2) .line-text { left: 20ch; }
.studio-project:nth-child(3) .line-text { left: 22ch; }
.studio-project:nth-child(4) .line-text { left: 24ch; }
.studio-project:nth-child(5) .line-text { left: 26ch; }
.studio-project:nth-child(6) .line-text { left: 28ch; }

.year {
  margin-left: 8ch;  
}
.project:nth-child(1) .year { margin-left: 28ch; }
.project:nth-child(2) .year { margin-left: 21.3ch; }
.project:nth-child(3) .year { margin-left: 23.5ch; }
.project:nth-child(4) .year { margin-left: 25.5ch; }
.project:nth-child(5) .year { margin-left: 22.2ch; }
.project:nth-child(6) .year { margin-left: 15.2ch; }

.studio-project:nth-child(1) .year { margin-left: 18ch; }
.studio-project:nth-child(2) .year { margin-left: 18.3ch; }
.studio-project:nth-child(3) .year { margin-left: 16ch; }
.studio-project:nth-child(4) .year { margin-left: 18.9ch; }
.studio-project:nth-child(5) .year { margin-left: 20.2ch; }
.studio-project:nth-child(6) .year { margin-left: 22.7ch; }


/* Hover images */
.project img,
.studio-project img {
  display: none;
  position: absolute;
  max-width: 320px;
  max-height: 250px;
  right: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 10;
  pointer-events: none;
}
/* First image */
.img-1 {
  top: -70px;
  right: 20px;
  left: 600px;
}

/* Second image */
.img-2 {
  top: 220px;
  right: 100px;
  left: 500px;
}

/* Show on hover */
.project:hover img,
.studio-project:hover img {
  display: block;
}
/* Footer email */
footer .line-text {
  text-align: right;
}

@media (max-width: 700px) {
  /* Make text smaller */
  .line-text {
    font-size: 15px;
  }

  /* Make lines less tall */
  .line {
    height: 18px;  /* tighter spacing */
  }
.body {
  padding: 0rem;
}
  /* Optional: reduce paper padding */
  .paper {
    padding: 0rem;
    width: 95vw;      
    aspect-ratio: auto; 
  }

  .year {
    font-size: 15px;   /* slightly smaller for mobile */
    }
    
/* Mobile staircase for studio projects */
  .project:nth-child(1) .line-text { left: 4ch; }
  .project:nth-child(2) .line-text { left: 6ch; }
  .project:nth-child(3) .line-text { left: 8ch; }
  .project:nth-child(4) .line-text { left: 10ch; }
  .project:nth-child(5) .line-text { left: 12ch; }
  .project:nth-child(6) .line-text { left: 14ch; }

  /* Mobile staircase for project years */
  .project:nth-child(1) .year { margin-left: 15ch; }
  .project:nth-child(2) .year { margin-left: 8.5ch; }
  .project:nth-child(3) .year { margin-left: 10.7ch; }
  .project:nth-child(4) .year { margin-left: 12.8ch; }
  .project:nth-child(5) .year { margin-left: 9.6ch; }
  .project:nth-child(6) .year { margin-left: 2.5ch; }

  /* Mobile staircase for studio project titles */
  .studio-project:nth-child(1) .line-text { left: 4ch; }
  .studio-project:nth-child(2) .line-text { left: 6ch; }
  .studio-project:nth-child(3) .line-text { left: 8ch; }
  .studio-project:nth-child(4) .line-text { left: 10ch; }
  .studio-project:nth-child(5) .line-text { left: 12ch; }
  .studio-project:nth-child(6) .line-text { left: 14ch; }

  /* Mobile staircase for studio project years */
  .studio-project:nth-child(1) .year { margin-left: 5ch; }
  .studio-project:nth-child(2) .year { margin-left: 5.3ch; }
  .studio-project:nth-child(3) .year { margin-left: 3ch; }
  .studio-project:nth-child(4) .year { margin-left: 5.9ch; }
  .studio-project:nth-child(5) .year { margin-left: 7.2ch; }
  .studio-project:nth-child(6) .year { margin-left: 9.5ch; }

  }


@media (max-width: 800px) {

  .line {
    height: 22px;   /* tighter notebook lines */
  }

  .paper {
    width: 100vw;
    padding: 3rem;
    aspect-ratio: auto; 
  }
.line-text {
  position: absolute;
  top: 50%;
  padding-left: 1.5ch; 
  transform: translateY(-50%);
  font-size: 15px;
  color: rgb(50, 50, 50);
  margin: 0;
  white-space: nowrap;
}
  /* make hover images fit the screen */
  .project img,
  .studio-project img {
    width: 65vw;
    max-width: 300px;
    left: auto;
    right: 0;
  }
   }

  @media (max-width: 700px) {

  .line {
    height: 22px;   /* tighter notebook lines */
  }

  .paper {
    width: 100vw;
    padding: 1rem;
    aspect-ratio: auto; 
  }

  @media (max-width: 700px) {

  body {
    padding: 0;
  }
}
@media (max-width: 600px) {

  /* Allow all line-text to wrap */
  .line-text {
    white-space: normal !important;   /* override nowrap */
    word-break: break-word;           /* wrap long words */
    font-size: 15px;                  /* smaller text for mobile */
    padding-right: 1.5ch;               /* keep padding from right */
  }

  /* Project title line: center & wrap nicely */
  .project-title-line .line-text {
    white-space: normal !important;
    font-size: 1px;                  /* slightly bigger than description */
    text-align: center;               /* keep centered */
  }

  /* Adjust scroll images if needed */
  .image-scroll img {
    max-height: 250px;                /* fit mobile screen better */
  }
}
}
.image-scroll::-webkit-scrollbar {
  height: 2px;
}

.image-scroll::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
}

.image-scroll::-webkit-scrollbar-thumb {
  background:  #84b5e7;
  border-radius: 999px;
}