*{
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 10rem;
  }  
body {
    margin: 0;
    font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
    background-color: black;
    color:white;
    animation: fadein 2s ease;
    overflow-x: hidden;
    
}
@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

nav{
    position: sticky;
    top: 1%;
    z-index: 999;
    margin-top: 2rem;
 
}



nav ul{
    display:flex;
    justify-content: space-around; 
    list-style: none; 
    color:white
    
    
}

nav a{
    color: white;
    text-decoration: none;
    border: 0.1rem solid rgba(128, 128, 128, 0.428);
    padding:0.3rem 0.8rem 0.3rem 0.8rem;
    border-radius: 2rem;
    transition: 0.8s ease;
    font-family: "Gotham Light", "Gotham", sans-serif;
}

nav a:hover,
nav a:focus{
    border-color: white;
   

}

.section {
    margin-left:10vw;
    
    
}
.sub-section {
    /* border: 1px solid red;*/
    margin-left:5vw;

}

h1 {
    font-size: 14vw;
    margin: -3px auto;
  
    line-height: 1;
    white-space: nowrap;
    
   
    display: block;
    
  }
  

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}
h4 {
  font-size: 1rem;
  font-family: "Gotham Book", "Gotham", sans-serif;
  color:grey;
  width: 60vw;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  

}

.image-caption {
  font-size: 1rem;
  font-family: "Gotham Book", "Gotham", sans-serif;
  color: grey;
  width: 60vw;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

code {
    display: block;
    white-space: pre-wrap;
}

p{
    color:grey;
    font-size: 1.3rem;
    font-family: "Gotham Book", "Gotham", sans-serif;
}





/* LANDING PAGE*/

/*personal statement*/


.section-intro{
    width: 43%; 
    margin: 10rem 0 13rem 50%;
}
.section-intro p{
    color:white;
    /* >>clamp<< for dynamic font sizes,  from "https://www.w3schools.com/cssref/func_clamp.php"*/
    font-size: clamp(1rem, 1.2vw, 1.5rem);
   
}

/* project section */
.landing-project-section {
    padding: 0 5vw;
  }
  .project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .project-card {
    flex: 1 1 20rem;
  }
  
  .project-description {
    height: 5rem;
    /*border: 1px solid red;*/
  }
  .project-description p {
    font-size: clamp(1.2rem, 1.2vw, 1.3rem);
  }
  .project-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height:32rem;
    /*order: 1px solid red; */
  }
  /* Show most of each homepage cover, with a small centered crop. */
  .project-card .project-img {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
  .project-card .project-img > a:first-child {
    width: 100%;
  }

  .project-button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.6s ease;
    text-decoration: none;
  }
  
  
  
  
  .project-img a {
    display: block;
  }
  
  .project-img img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
  }
  
  .project-img:hover img,
  .project-img:focus-within img {
  transform: scale(1.08);
  }

  .project-img:hover .project-button,
  .project-img:focus-within .project-button {
  opacity: 1;
  }
  

/*about me section*/
  .section-aboutme {
    margin-top: 20rem;
    margin-bottom:10rem;
    display: flex;
    align-items: flex-start;
    gap: 5rem;
    padding-left:5vw;
    padding-right:5vw;
  }
  
  .aboutme-image {
    width: 60%;
  }
  
  .aboutme-image img {
    display: block;
    width: 100%;
    height: auto;
  }
  .aboutme-text {
    max-width: 40vw;
  }
  
  
.section-aboutme p{
    color:white;
    /* >>clamp<< for dynamic font sizes,  from "https://www.w3schools.com/cssref/func_clamp.php"*/
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
}
.section-aboutme span {
    display: inline-block;
    margin-right: 2rem;
    color: rgba(151, 149, 149, 0.784);
  }
/*what I do section*/
.whatido-section {
  margin: 8rem 5vw 10rem;
  display: flex;
  gap: 5rem;
}

.whatido-title {
  width: 50%;
  margin: 0;
}

.whatido-list {
  width: 40%;
}

.whatido-list p {
  margin: 1rem;
}
.color-1 {
  color:white;
}

/*contact section*/
.contact-info {
  margin: 8rem 5vw 10rem;
  display: flex;
  align-items: flex-start;
  gap: 5rem;
}

.contact-info-title {
  width: 50%;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}



.contact-info-text {
  width:40%;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
  
}
.contact-info-text p{
  color:white;
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}
.contact-info-text a {
  color: white;
  
  font-size: clamp(1rem, 1.2vw, 1.5rem);
}
.contact-button {
  position: static;
  opacity: 1;
  width: fit-content;
  transition: color 0.8s ease;
}
.contact-button:hover{
  color: grey;
}


/*style guide link*/

.style-guide-button{
  color:white;
  text-decoration:none;
  position: static;
  transition: color 0.8s ease;
  opacity: 1;
  width: fit-content;
  margin-left:4%;
  
}


.style-guide-button:hover{
  color: grey;
}

@media (max-width:480px){
    .section-intro{
        width:80%;
        margin: 10rem 0 5rem 10%;
    }
    .section-aboutme {
    flex-direction: column;
  }
    .section-aboutme p{
    width:100%
  }

    .aboutme-image,
    .aboutme-text {
        max-width: 90vw
  }
    .project-card {
        flex-basis: 100%;
    }
  
  }


/* >>>>>>>>>>>>>>>>>PROJECT PAGE*/

.project-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.project-hero img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover; 
    filter: brightness(0.75);
}

.project-hero h1 {
    position: absolute;
    top: 50%;
    right:0.1vw;
    margin: 0;
    color: white;
    font-size: 4rem;
    max-width: 30rem;
    text-wrap: wrap;
    font-family: "Gotham bold", "Gotham", sans-serif;
     
}


.project-page-nav {
    position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 999;
}

.project-page-nav nav ul {
    margin: 0;
}

/*project info*/
.project-info {
    margin: 8rem 5vw 10rem;
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.project-info-title{
    width: 50%;
}

.project-info-title p{
    margin: 0;
    color: white;
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
}

.project-text {
    max-width: min(40vw, 40rem);
}


.project-text h2,
.project-text p{
    margin: 0 0 3rem;
    color:white;
    font-size: clamp(0.8rem, 1.2vw, 1.5rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
}


.project-text h2 {
    color: rgba(151, 149, 149, 0.784);
}

.project-list-text {
    list-style: none;
}

.project-list-text li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
}
.project-text p.project-text-problem-space{
  color:grey;
}

/*project tags*/
.project-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-left: 2.5rem;
  }
  
.project-tag {
    padding: 0.5rem;
    background: white;
    color: black;
    border-radius: 0.4rem;
    font-size: clamp(0.6rem, 1.2vw, 1rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
  }

  /*project process*/
.project-process{
  padding-top: 5rem;
  padding-bottom: 5rem;
  width: 55%;
  margin: 0 auto;
  text-align: left;
  max-width: 40rem;
}
.project-process h2{
  font-size: clamp(1.2rem, 1.2vw, 1.5rem);
    font-family: "Gotham medium", "Gotham", sans-serif;

}
.project-process p{
  font-size: clamp(0.8rem, 1.2vw, 1.5rem);
    font-family: "Gotham Book", "Gotham", sans-serif;
}
/* Keep project body lines readable and avoid a lone final word. */
.project-text p,
.project-process p {
  text-wrap: pretty;
}
.project-text .paragraph-end,
.project-process .paragraph-end {
  white-space: nowrap;
}







.project-img-center{
    
    display: block;
    width: 65vw;
    margin: 1rem auto 1rem;
   
}
.project-img-center-landscape{
   
    
  display: block;
  max-width: 75vw;
  margin: 1rem auto 1rem;
  
}
.project-img-center-noborder{
    display: block;
    width: 60vw;
    margin: 0rem auto 1rem;
}
.project-img-center-large{
  display: block;
  object-fit: cover;
  width: 80vw;
  margin: 0rem auto 1rem;

}
.project-card-subproject{
  width: 20rem;
  margin: 0 auto 10rem;

}
.project-description-subproject {
  text-align: center;
}
.project-description-subproject p{
  font-size: clamp(0.6rem, 1.2vw, 0.8rem);
  color:white;

}

.footer-links {
  display: flex;
  
  gap: 1rem;
}

/* Publish-readiness: keep desktop layout; make project text readable on phones. */
@media (max-width: 600px) {
  nav ul { padding-left: 0; gap: 0.5rem; }
  body > nav { top: 0; background: #000; padding: 0.5rem 0; }
  .project-page-nav { background: rgba(0, 0, 0, 0.92); }
  .project-info { flex-direction: column; gap: 2rem; margin: 3rem 5vw; }
  .project-info-title, .project-text { width: 100%; max-width: none; }
  .contact-info, .whatido-section { flex-direction: column; gap: 2rem; margin: 3rem 5vw; }
  .contact-info-title, .contact-info-text, .whatido-title, .whatido-list { width: 100%; }
  .project-text h2, .project-text p, .project-list-text li,
  .project-process p { font-size: 1rem; }
  .project-list-text, .project-tags { padding-left: 0; }
  .project-process { width: 90%; padding: 2rem 0; }
  .project-hero { height: 70svh; min-height: 22rem; }
  .project-hero img { height: 100%; }
  .project-hero h1 { right: 5vw; max-width: 90vw; font-size: clamp(2rem, 8vw, 3rem); white-space: normal; }
  .project-img-center, .project-img-center-noborder,
  .project-img-center-landscape, .project-img-center-large { width: 90vw; max-width: 90vw; }
}
