/* FULL PAGE */
body {
    margin: 0;
    padding: 0;
    background-image: url("../images/star_tile1.png");
    background-repeat: repeat repeat;
    animation: driftStars 30s linear infinite;
    font-family: 'EB Garamond', serif;
    color: white;
}

.ital {
    font-style: italic;
}

.bold {
    font-weight: 600;
}

/* CONTENT WRAPPER */
.content_block {
    width: 80vw;
    min-height: 100vh;
    margin: 0 auto;
    background-color: rgba(23, 23, 23, 0.8);
    padding: 20px;
    box-sizing: border-box;
}

/* NAVBAR SECTION */
.banner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2.5vh 1.5vw;
    border-bottom: 2px solid black;
}

.site_title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.7); 
    margin: 0;
    margin-right: auto;
    padding-left: 50px;
    align-self: center;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav li a {
    text-decoration: none;
}

.logos_block {
    height: 40px;
    width: 40px;
    display: block;
    border-radius: 10px;
}

.logos_rect {
    margin-top: 2px;
    height: 37px;
    width: 43px;
    display: block;
    border-radius: 10px;
}

.logos_block,
.logos_rect {
  transition: transform 0.2s ease;
}

.logos_block:hover,
.logos_rect:hover {
  transform: scale(1.15);
}

/* PROFILE SECTION */
.head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 95px;
    padding: 50px 0;
    width: 100%;
    max-width: 100%;
}
  
.profile_column {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 55px;
    margin-top: 30px;
}
  
.profile {
    width: 270px;
    height: 350px;
    padding: 10px;
    border: 1px solid white;
    box-sizing: border-box;
    animation: profileFloat 1s ease-out forwards;
}
  
.profile_link {
    margin-top: 20px;
    margin-left: 100px;
}
  
.profile_link a {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    transition: background-color 0.3s, color 0.3s;
}
  
.profile_link a:hover {
    border: 0.2px solid gray;
    border-radius: 8px;
}

.cv_swing {
    animation: swingInLeft 1s ease-out 0.5s forwards;
    opacity: 0;
}

.bio_block {
    display: flex;
    align-items: flex-start;
    gap: 55px;
    margin-top: 30px;
}
  
.vertical_line {
    width: 2px;
    height: 0;
    background-color: white;
    animation: growLine 1s ease-out 1s forwards;
}
  
.text h2,
.text p {
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  visibility: hidden;
  animation: typeText 1.1s steps(30, end) 1.5s forwards; 
}

/* DETAILS SECTION */
.projects_block {
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
}

.top_border {
    height: 2px;
    background-color: black;
    width: 0;
    margin: 0 auto;
    animation: drawBorder 1.5s ease-out forwards;
}
  
.overview_title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7em;
    text-align: left;
    margin: 80px 0px 0px 80px;
    color: rgba(255, 255, 255, 1);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}
  
.overview_animate {
    opacity: 1;
    transform: translateX(0);
}

.overview_underline {
    height: 2px;
    background-color: gray;
    width: 0;
    margin: 10px 0 30px 95px;
    opacity: 0;
    transition: width 1s ease-out, opacity 0.5s ease-out;
}
  
.overview_animate + .overview_underline {
    width: 160px;
    opacity: 1;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    margin-left: 80px; 
}
  
.Project {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    font-family: 'EB Garamond', serif;
    max-width: 800px;
}


.Project.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
.title_headers {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}
  
details summary {
    font-size: 1em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.ps-inline {
    display: inline-block;
    margin-top: 10px;
}

.ps-inline summary {
    display: inline;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.ps-inline p {
    margin: 5px 0 0 20px;
    font-style: normal;
}

.ps-inline::-webkit-details-marker {
    display: none;
}

  
details {
    margin-top: 5px;
}

/* FOOTER SECTION */
.footer_column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

.foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 60px;
    border-top: 2px solid black; 
    padding: 0 1.5vw;
    box-sizing: border-box;
    margin-top: 50px;
}
  
.foot p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 200;
    font-size: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer_link {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    padding: 6px 12px;
    margin-right: 42px;
    border: 1px solid transparent;
    transition: background-color 0.3s, color 0.3s, border 0.3s;
}
  
.footer_link:hover {
    border: 0.2px solid gray;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}


/* -------- SITE-WIDE ANIMATIONS -------- */
@keyframes driftStars {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px -100px;
    }
}


@keyframes profileFloat {
    0% {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        top: 10%;
        left: 5%;
        transform: translate(0%, 0%) scale(1);
        opacity: 1;
    }
}

@keyframes swingInLeft {
    0% {
      transform: translateX(-100px) rotate(-3deg);
      opacity: 0;
    }
    100% {
      transform: translateX(0) rotate(0deg);
      opacity: 1;
    }
}

@keyframes growLine {
    from {
      height: 0;
    }
    to {
      height: 420px;
    }
}

  @keyframes typeText {
    from {
      width: 0;
      visibility: visible;
    }
    to {
      width: 100%;
      visibility: visible;
      border: none;
    }
  }

  @keyframes drawBorder {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }

/* ------------- MEDIA QUERIES ------------ */

/* LAPTOP & SMALL DESKTOP */
@media (max-width: 1440px) {
.content_block {
    width: 90vw;
    padding: 15px;
}

.site_title {
    font-size: 2.2em;
    padding-left: 30px;
}

.nav {
    gap: 20px;
}

.profile {
    width: 240px;
    height: 310px;
}

.bio_block {
    gap: 40px;
}

.head {
    gap: 60px;
    padding: 40px 0;
}

.overview_title {
    margin: 60px 0 0 60px;
    font-size: 1.6em;
}
}
  
/* TABLET */
@media (max-width: 1024px) {
.content_block {
    width: 95vw;
}

.banner {
    flex-wrap: wrap;
    padding: 2vh 1vw;
}

.site_title {
    font-size: 2em;
    padding-left: 20px;
}

.nav {
    margin-top: 10px;
    gap: 15px;
}

.head {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.profile_column {
    margin-left: 0;
    margin-top: 0;
}

.bio_block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.text h2,
.text p {
    animation-delay: 1s;
}

.projects {
    margin-left: 20px;
    gap: 30px;
}

.overview_title {
    margin: 40px 0 0 20px;
}
.overview_underline {
    margin-left: 20px;
    width: 120px;
}
}
  
/* PHONE */
@media (max-width: 768px) {
body {
    background-position: center;
}

.banner {
    justify-content: center;
}

.site_title {
    font-size: 1.8em;
    padding-left: 0;
}

.logos_block,
.logos_rect {
    height: 32px;
    width: 32px;
}

.head {
    padding: 20px 0;
}

.profile {
    width: 200px;
    height: 260px;
}

.profile_link {
    margin-left: 0;
}

.bio_block {
    padding: 0 10px;
}

.text p {
    font-size: 0.9em;
}

.projects {
    margin-left: 10px;
    gap: 20px;
}

.title_headers {
    font-size: 1.2em;
}

details summary {
    font-size: 0.95em;
}

.overview_title {
    margin: 30px 0 0 10px;
    font-size: 1.4em;
}
.overview_underline {
    margin-left: 10px;
    width: 100px;
}

.foot {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 1vw;
}

.footer_link {
    margin-right: 0;
    font-size: 14px;
}
.tm {
    font-size: 11px;
}
}

/* --------------- POST PROCESSING PATCHES --------------- */
  
/* Vert bar adjustments*/
@media (max-width: 1024px) {
.vertical_line {
    display: none;
}
}
  
/*  Mobil nav centering patch  */
@media (max-width: 768px) {
.banner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site_title {
    margin: 0;
    padding-left: 0;
    text-align: center;
}

.nav {
    justify-content: center;
    margin-top: 12px;
}
}

/* Phone overflow patch */
@media (max-width: 768px) {
.content_block {
    width: 95%;          
    max-width: 480px;    
    margin: 0 auto;      
    padding: 10px;       
    box-sizing: border-box;
}

/* allow re-wrapping */
.text h2,
.text p {
    white-space: normal !important;  
    width: auto !important;          
    overflow: visible !important;
    visibility: visible !important;
    animation: none !important;    
}

/* 3) kill left over horizontal scroll */
body {
    overflow-x: hidden;
}
}

/* ------------ COMPACTION PATCH ------------- */

/* Keep bio text to ~65 characters/line and allow wrapping */
.bio_block .text {
  max-width: 65ch;          /* ≈ 520-560 px depending on font */
  line-height: 1.45;
}

.bio_block .text h2,
.bio_block .text p {
  white-space: normal !important;  /* kill nowrap that caused overflow */
  width: auto !important;          /* release the typewriter width lock */
  overflow: visible !important;
  visibility: visible !important;
  animation: none !important;      /* optional: drop typewriter on copy */
}
