body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  overflow-y: scroll;
}

body {
  font-family: "Cormorant", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #150242;
  color: white;
}

/* Accessibility: Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
}

section {
  flex: 1;
}

/* NAV */

header {
  width: 100%;
  height: 100px;
  background-color: #250E5A;
  filter: drop-shadow(0px 1px 6px rgba(214, 214, 214, 0.2));
}

header.nav-open {
  filter: none;
}

header .container {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
}

header .container a {
  display: inline-block;
  line-height: 0;
}

#logo {
  position: static;
  width: 80px;
  height: auto;
  border-radius: 5px;
  display: block;
}

header .container a {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  line-height: 0;
}

#hamburger-menu {
  margin-left: auto;
}

#navigation {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  position: absolute;
  background-color: #150242;
}

#navigation.open {
  position: fixed;
  opacity: 1;
  max-height: 95vh;
  max-width: 100vw;
  height: 95vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

#navigation.open .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 5rem;
}

.nav-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 16px;
}

.nav-titles li {
  opacity: 0;
  transform: translateY(50px);  
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
}


#navigation.open .nav-titles li,
#navigation.open .contact-container .email-nav,
#navigation.open .contact-container {
  opacity: 1;
  transform: translateY(0);
}

.nav-titles li:nth-child(1) {
  transition-delay: 0.1s;
}
.nav-titles li:nth-child(2) {
  transition-delay: 0.2s;
}
.nav-titles li:nth-child(3) {
  transition-delay: 0.3s;
}
.nav-titles li:nth-child(4) {
  transition-delay: 0.4s;
}


body.nav-open {
  overflow-y: hidden;
  position: fixed;
  width: 100%;
}

body.nav-open main {
  visibility: hidden;
  pointer-events: none;
}

body.nav-open main #navigation {
  visibility: visible;
  pointer-events: auto;
}

body.nav-open main .container {
  visibility: visible;
  pointer-events: auto;
}

#navigation ul {
  list-style: none;
}

#navigation ul li a {
  text-decoration: none;
  color: #C837AB;
  font-size: 72px;
  font-weight: 600;
}

#navigation ul li a:hover {
  color: white;
}


@media (max-width: 780px) {
  .nav-container {
    gap: 30px;
  }
  .nav-titles {
    gap: clamp(1rem, 5vw, 30px);
  }
  #navigation ul li a {
    font-size: clamp(1.2rem, 10vw, 56px);
}
}

@media (max-height: 700px) {
  .nav-titles {
    gap: clamp(1rem, 5vw, 30px);
    }
  #navigation ul li a {
    font-size: clamp(1.2rem, 10vw, 56px);
}
}


/* Home Page */

.home {
  margin: 0;
  flex: 1;
  padding: 
    env(safe-area-inset-top) 
    env(safe-area-inset-right)
    env(safe-area-inset-bottom) 
    env(safe-area-inset-left); 
  min-height: 100%;
}

.home-nav {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1 1 auto;
  position: relative;
  max-width: 100vw;
  padding-top: 120px; /* space for header */
  padding-bottom: 120px; /* space for footer */
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.img-wrapper {
  width: 100vw;
  height: 75vh;
  max-width: 100vw;
  max-height: 75vh;
  position: relative;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center .home-links inside .home-nav, no absolute positioning */
.home-links {
  width: 100%;

  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 0;
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  box-sizing: border-box;
}


.home-links h2{
  margin: 0;
}

main.home {
  display: flex;
  flex-direction: column;
}

.container.home-links {
  flex: 1;
}

.home-links h2 a {
  text-decoration: none;
  color: #C837AB;
  font-size: clamp(2rem, 8vw, 72px);
  line-height: 1.1;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
  transition: font-size 0.2s;
}

.home-links h2 a:hover {
  color: white;
}


@media (max-width: 780px) {
  .home {
    background-color: #150242;
    background-image: none;
  }
  .home-links {
    gap: 30px;
    max-width: 95vw;
  }
  .home-links h2 a {
    font-size: clamp(1.2rem, 10vw, 56px);
  }
}

@media (max-height: 700px) {
  .home-links h2 a {
    font-size: clamp(1.2rem, 10vw, 56px);
  }
  .home-links {
    gap: clamp(1rem, 5vw, 30px);
  }
}

/* Project Layout */
main {
  margin: 20px 0 80px 0;
}
main .container {
  max-width: 1000px;
}

.key-img-container {
  max-height: 600px;
  width: 100%;

}
.key-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.descriptor-list {
  display: flex;
  flex-direction: row;
  gap: 30px;
  font-size: 1.1rem;
}

.descriptor-list ul{
  list-style: none;
  padding-left: 0;
  line-height: 30px;
}

.title-descriptor li {
  font-weight: 700;
  font-size: 1rem;
}

.descriptor li {
  font-weight: 700;
  font-size: 1rem;
}

.production-produced-for {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.produced-for {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.produced-for img {
  height: 50px;
  width: auto;
}

.produced-for-img {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.production-co {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

}

.production-co-img {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.production-co img {
  height: 50px;
  width: auto
}

.img-dropdown {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.img-container {
  max-width: 600px;
  min-width: 300px;
  width: 100%;
  height: auto;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.carousel {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slides img {
  flex: 0 0 100%;
  max-width: 600px;
  min-width: 300px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

button.prev { left: 10px; }
button.next { right: 10px; }

.master-dropdown {
  max-width: 500px;
  width: 500px;
}

.dropdown {
  width: 100%;
  margin: 10px auto;
  border-bottom: 1px solid white;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}

.dropdown-header > span:first-child {
  font-weight: 600;
  font-size: 1.25rem;
}

.dropdown-header:hover {
  background-color: #250E5A;
  border-radius: 5px;
}

.arrow {
  transition: transform 0.3s ease;
  transform: scaleX(1.5);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 10px;
  font-size: 14px;
}

.press-container {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.press {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  
}

.core-team-list {
  padding-left: 0;
}

.core-team-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  padding: 3px 0;
}

.core-team-list .role {
  font-weight: 600;
  max-width: 150px;
  min-width: 150px;
  white-space: wrap;
}

.core-team-list .name {
  flex: 1;
  word-break: break-word;
}

.award {
  display: flex;
  flex-direction: row;
  justify-content:space-between;
  align-items: center;
  gap: 10px;
}

.award p {
  font-weight: 600;
}

.dropdown.open .dropdown-content {
  max-height: none;
}

.dropdown.open .arrow {
  transform: rotate(180deg);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-btn {
  padding: 4px 12px;
  background-color: #C837AB;
  border-radius: 5px;
  font-family: "Kantumruy Pro", serif;
}

.dropdown-links {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.dropdown-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.link-btn:hover {
  background-color: #250E5A;
  transition: ease-in 0.15s;
}



@media (max-width: 780px) {
  .img-dropdown {
    flex-direction: column;
    gap: 30px;
  }
  .img-container {
    max-width: 600px;
  }
  .descriptor-production {
    display: flex;
  }
  .production-produced-for {
    flex-direction: column;
    align-items: center;
  }
  .produced-for {
    align-items: center;
  }
  .production-co {
    align-items: center;
  }
  .master-dropdown {
    max-width: 100%;
    min-width: none;
  }
}

@media (max-width: 550px) {
  .descriptor-production {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .produced-for {
    margin-bottom: 2rem;
  }
}

/* Projects Page */

.project {
  position: relative;
  max-width: 400px;
  max-height: 225px;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(223, 223, 223, 0.2);
  flex: 0 0 auto;
  background-color: rgba(0, 0, 0, 0.8)
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#projects .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 50px;
}

.project-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  margin: 0;
  font-size: 2rem;
  opacity: 0;
  text-align: center;
}

.project:hover .project-title {
  opacity: 100%;
}

.project:hover .project-img {
  opacity: 60%;
  filter: blur(2px);
}

@media (max-width: 890px) {
  #projects .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
}

/* About */

#bio {
  margin-top: 50px;
}

#bio h1 {
  margin: 0 0 16px 0;
  font-size: 48px;
  color: #C837AB;
}

#bio .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.img-text {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.extended-text p {
  margin-top: 0;
}

.intro-container h3 {
  font-size: 24px;
  margin: 0;
}

.bio-img {
  max-height: 400px;
  max-width: 400px;
  border-radius: 5px;
}

@media (max-width: 780px) {
  .img-text {
    flex-direction: column;
    align-items: center;
  }
  #bio .container {
    gap: 0;
  }
}

/* Contact Page */

.main-contact {
  margin: 2rem 0;
}

.contact-us-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 60vh;
}

.contact-us {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.left-side-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}

.right-side-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
}

.right-side-contact h1 {
  color: #C837AB;
  font-size: 72px;
  margin: 1rem 0;
}

.right-side-contact h4 {
  font-size: 32px;
  margin: 1rem 0;
}

.right-side-contact p {
  font-size: 16px;
  font-weight: 600;
  margin: 1rem 0 ;
}

@media (max-width: 780px) {
  .contact-us-container {
    flex-direction: column;
    margin-top: 3rem;
  }
  .right-side-contact h4 {
    font-size: 24px;
  }
}

/* Footer */

footer {
  background-color: #250E5A;
  height: 100px;
  width: 100%;
  z-index: 1;
}

.footer-home {
  margin-top: auto; 
  z-index: 0;
  background-color:transparent;
}

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  gap: 20px;
}

.footer-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.footer-list li {
  list-style: none;
}

.footer-icon {
  height: 30px;
  width: auto;
}