* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: #F2EFE7;
}

nav {
  display: flex;
  align-items: center;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.name, 
.homenav {
  flex: 1 1 auto;      
  min-width: 0;  
        
}


.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 15px; 
  font-size: 150%;
}

.about,
.projects2, .hero{
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  padding: 5vh 0;
}

.projectContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2rem; 
  padding: 4rem; 
  background-color: #9ACBD0;
  width: 100%;
  box-sizing: border-box;
}

.projectContainer>div {
  background-color: #9ACBD0;
  padding: 20px;
  font-size: 30px;
  text-align: center;
}

.projectContainer .card {
  background-color: #006A71;
  height: 15rem; /* fixed height for uniform grid */
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 0.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.projectContainer .card h4,
.projectContainer .card p,
.projectContainer .card a {
  margin: 0.3rem 0;      
  font-size: 1rem;       
  line-height: 1.2;      
  text-align: center;
}

.projectContainer .card a {
  font-size: 0.9rem;
  color: #F2EFE7;
  text-decoration: underline;
}

.noProject svg {
  height: 3rem;
  width: auto;
  margin: 0.5rem 0;
  display: block;
}


.flex-container {
  display: flex;
  justify-content: space-between;
  height: 100vh;
  width: 100vw;
}

.container,
.name,
.title,
.bio,
.skillsboxl,
.skillsboxr {
  flex: 1 1 0;
  min-width: 0;
}

.container {
  display: inline;
}

.shape {
  display: inline-block;
  width: 70vw;
  height: 30vw;
  background-color: #006A71;
  border-radius: 50%;
  position: relative;
  left: -40%;
  clip-path: ellipse(50% 50% at 50% 50%);
  overflow: hidden;
}


#face {
  width: 50%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 30%;
}

.name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 50vw;
 
}


h1 {
  margin-top: 1vw;
  font-size: 10vw;
  font-family: 'Apple Chancery';
 
  margin-bottom: 10vw;
  
}

.homenav {
  height: 70vw;
  margin: auto;
  width: 50%;
  text-align: center;
  margin-top: -10vw;
  
  
}

.navlist {
  font-size: 500%;
  list-style: none;
}

.navlist li {
  margin-bottom: 10%;
  list-style: none;
}

a {
  color: black;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-decoration: none;
}

a:hover {
  color: #006A71;
}

.about,
.projects2 {
  background-color: #9ACBD0;
}

h2 {
  margin-top: 1vw;
  font-size: 5vw;
  text-align: center;
  font-family: 'Apple Chancery';
}

.bio {
  margin-top: 1vw;
  font-size: 2vw;
  text-align: center;
  font-family: 'Apple Chancery';
  padding-right: 30px;
  padding-left: 30px;
  height: 30vw;
}

.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4vw;
  background-color: #F2EFE7;
  width: 100vw;
  margin: 0;
  padding: 0;
}

.skillstitle {
  text-align: center;
  margin-bottom: -5vw;
  width: 100%;
}

.skills-row {
  display: flex;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.skillsboxl,
.skillsboxr {
  flex: 1;
  height: 45vw;
  margin: 0;
  box-sizing: border-box;
}

.skillsboxl {
  background-color: #9ACBD0;

}

.skillsboxr {
  background-color: #006A71;
}


.protitle {
  font-family: 'Apple Chancery';
  font-size: 3vw
}

.softtitle {
  font-family: 'Apple Chancery';
  font-size: 3vw
}

#scroll-container {

  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  display: flex;
  gap: var(--gap);

}

#scroll-text {
  gap: var(--gap);
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: scroll 15s linear infinite;
  --gap: 3rem;
  gap: var(--gap);

}

.icons {
  display: flex;
  gap: 3rem;
}

@keyframes scroll {
  to {
    transform: translatex(calc(-100% - 3rem));
  }

}

.pybox {
  margin-right: 2rem;
}

#scroll-container2 {
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  display: flex;
  gap: var(--gap);
}

#scroll-text2 {
  gap: var(--gap);
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: scroll 20s linear infinite reverse;
  --gap: 3rem;
  gap: var(--gap);

}

.icons2 {
  display: flex;
  gap: 3rem;
  margin-bottom: 5rem;
}

.lastbox {
  margin-right: 3rem;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  background: #9ACBD0;
  margin: .5 rem;
  border-radius: 0.5rem;
 
}

.icon-box i {
  font-size: 5rem;
 
}

.softtitle {
  text-align: center;
}

.projects2 {
  background-color: #9ACBD0;
}

h3 {
  font-size: 5vw;
  text-align: center;
  font-family: 'Apple Chancery';
  background-color: #F2EFE7;
  width: 100%;
  border-radius: 100%;
  margin: 3rem;

}

.film-theater {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #9ACBD0;
  gap: 0;

}



.film-theater .row {
  display: flex;              /* becomes a flex container */
  flex-wrap: wrap;            /* allows cards to wrap to new lines */
  justify-content: space-evenly; /* equal space around each card */
  align-items: flex-start;    /* align cards at the top */
  gap: 2rem;    
}

.film-theater .card {
  background-size: cover; /* Ensures image fills the card */
  background-position: center;
  background-repeat: no-repeat;
  width: 20vw;
  height: 20vw;
  margin-top: 5rem;
  border-radius: 10%;
  border: thick solid #006A71;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-family: 'Apple Chancery', cursive;
}


img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.oval {
  width: 80vw;
  height: 40vw;
  background-color: #9ACBD0;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;     
  width: 80vw;
  height: 40vw;
  background-color: #9ACBD0;
  border-radius: 50%;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
 
}
.contact {
  display: flex;
  justify-content: center;
  align-items: center;    
  height: 100vh;         
}

.oval ul {
  margin-top: auto;  
  padding: 0;
  list-style: none;
 
}
