/* 
Theme name: elenasala
Description: Film Portfolio
Author: Daniel Senior Durán
*/ 

@font-face {
    font-family: '52';
    src: url('fonts/52.woff2') format('woff2'),
         url('fonts/52.woff') format('woff'),
         url('fonts/52.woff2') format('truetype');
    font-style: normal;
}
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-font-smoothing: antialiased;
    }
}
body {
    background-color: black;
    color: white;
    scroll-behavior: smooth;  
    width: 100vw;
    margin: 0;
    letter-spacing: -0.0055em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; /* For macOS Firefox */
    font-weight: normal;
}
li {
    list-style-type: none;
}
/*TEXT STYLES*/
a {
    color: white;
    text-decoration: none;
    transition: 0.8s ease-in-out;
    font-weight: normal;
}
.mainav a {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.8px;
    line-height: 14px;
    text-transform: uppercase;
  }
  h1 {
      font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
      font-size: 7vw;
      line-height: 0.9;
      margin: 0;
      margin-right: 0.5rem;
      text-align: center;
      flex-basis: 90%;
      margin-bottom: 2rem;
      -webkit-font-smoothing: antialiased;
      letter-spacing: -0.2vw;
      -webkit-font-smoothing: antialiased;
  }
  h2 {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  h3 {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    color: rgb(124, 124, 124);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  h5 {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 8px;
    line-height: 14px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  h6 {
    font-size: 13vw;
    letter-spacing: -0.4vw;
    line-height: 0.9;
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    transition: font-size 0.3s ease-out;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
}
  p {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  a {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  button {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    border: none;
    background-color: transparent;
    color: rgb(124, 124, 124);
    padding: 0;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    font-weight: normal;
  }
  .hero-control-button button {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    border: none;
    background-color: transparent;
    color: rgb(124, 124, 124);
    padding: 0;
    cursor: pointer;
  }
/*NAV*/
.mainav {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 1.2rem;
    z-index: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    margin: 0;
    mix-blend-mode: difference;
}
.mainav.scrolled-bg {
    background: linear-gradient(180deg, black, transparent);
    mix-blend-mode: normal;
}
.e-s {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: space-between;
    transition: all 0.3s ease-out;
    position: relative;
    z-index: 89;
    transform: translateY(0);
    margin-bottom: 0.4rem;
}
.center {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: all 0.3s ease-out;
}
.right-bar a {
  margin-left: 2.4rem;
}
.logo {
    text-align: center;
    letter-spacing: 0.7vw;
}
.about {
    text-align: right;
}
/*INTRO*/
.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.intro-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 111vw;
    height: 111vh;
    min-height: 111vh;
    min-width: 111vw;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
#player {
    max-width: unset;
    height: 100vh;
}
/*GRID*/
.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    padding: 1.2rem;
    padding-top: 4rem;
    z-index: 50;
    background-color: black;
    position: absolute;
    top: 100vh;
    width: calc(100vw - 2.4rem);
}
.projectingrid {
    display: block;
    margin-bottom: 2.4rem;
    cursor: pointer;
    position: relative;
}
.project-tag {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 0.4rem;
    align-content: flex-start;
    transition: 0.8s ease-in-out;
}
.project-tag h5 {
    margin-right: 0.5rem;
}
.naming {
  flex-basis: 94%;
  display: flex;
  box-sizing: border-box;
  flex-direction: row;
  justify-content: flex-start;
  align-items: baseline;
  flex-wrap: wrap;
}
.naming h2 {
    margin-right: 0.5rem;
}
.thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
/*SINGLE PROJECT*/
.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    cursor: none; /* Hide default cursor */
}
.hero-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100vw - 2.4rem);
    height: 80vh;
    max-height: 100vh;
    min-width: calc(100vw - 2.4rem);
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') 12 12, pointer;
}
.hero-container.playing .video-overlay {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>') 12 12, pointer;
}
.description {
    width: 100vw;
    padding: 1.2rem;
    padding-top: 4.5rem;
    padding-bottom: 0;
    z-index: 300;
    position: absolute;
    top: 100vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: space-between;
    background-color: black;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.downbar {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    box-sizing: border-box;
    margin-bottom: 5.4rem;
}
.project-name {
    text-align: start;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: baseline;
}
#credits {
    text-align: center;
    cursor: pointer;
    color: rgb(124, 124, 124);
    transition: all 0.3s ease;
}
#credits:hover {
    animation: blink 1s ease-in-out infinite;
}
.downbar h3 {
  margin-right: 0.5rem;
}
.texts {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: center;
}
.categoinsingle {
    position: fixed;
    bottom: 1.2rem;
    left: 1.2rem;
}
.roles {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: center;
    margin-bottom: 4rem;
}
.roles h3 {
  text-align: center;
  color: rgb(124, 124, 124);
  font-size: 10.3px;
}
.roles p {
  text-align: center;
}
.credit-line {
    flex-basis: 33.3%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
    margin-bottom: 14px;
}
.texts p {
    flex-basis: 50%;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 16.3px;
    line-height: 1.1;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
#preloader h2 {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 14px;
    margin: 0;
    text-transform: none;
}
#preloader .counter {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
    font-size: 12.5px;
    color: white;
}
main {
    transition: opacity 0.5s ease-in-out;
}
/* Update blink animation keyframes */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* Update project tag styles - all elements blink together with infinite loop */
.projectingrid:hover .project-tag h5,
.projectingrid:hover .project-tag h2,
.projectingrid:hover .project-tag h3,
.center a:hover {
    animation: blink 1s ease-in-out infinite;
}
/* Remove staggered delays */
.projectingrid:hover .project-tag h5,
.projectingrid:hover .project-tag h2,
.projectingrid:hover .project-tag h3 {
    animation-delay: 0s;
}
/* Ensure smooth transitions */
.project-tag h5,
.project-tag h2,
.project-tag h3,
.center a {
    transition: opacity 0.3s ease;
}
html {
    scroll-behavior: smooth;
}
/* Style the play button as text */
.vp-controls button[data-play-button] {
    font-family: '52', 'Helevetica Neue', Helvetica, Arial, sans-serif !important;
    font-size: 12.5px !important;
    line-height: 14px !important;
    color: white !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: unset !important;
    opacity: 1 !important;
    cursor: pointer !important;
}
/* Add Play/Pause text */
.vp-controls button[data-play-button]:before {
    content: 'Play' !important;
    opacity: 1 !important;
}
.vp-controls button[data-play-button][aria-label="Pause"]:before {
    content: 'Pause' !important;
}
/* Position controls */
.vp-controls {
    padding: 1.2rem !important;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent) !important;
    opacity: 1 !important;
}
/* Ensure controls stay visible */
.vp-controls-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
}
.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: default;
}
.hero-controls {
    position: fixed;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    justify-content: center;
    z-index: 600;
    width: auto;
    cursor: pointer;
    gap: 1.2rem;
}
#viewcredits {
    position: fixed;
    bottom: 1.2rem;
    text-align: start;
    left: 1.2rem;
    z-index: 200;
}
/* Add these classes back for the navbar animation */
.e-s.scrolled {
    margin-bottom: 0;
}

.e-s.scrolled h6 {
    font-size: 13.3px;
    line-height: 0.6;
    letter-spacing: -0.05vw;
}

/* Second animation - hide element */
.e-s.hidden {
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.e-s.hidden h6 {
    line-height: 0;
    transition: all 0.5s ease-out;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.vimeo-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    pointer-events: none;
}

.projectingrid:hover .poster-image {
    opacity: 0;
}

/* Add transition for smooth video appearance */
.video-preview iframe {
    opacity: 1;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.footer {
    width: calc(100vw - 2.4rem);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    border-top: solid rgb(124, 124, 124) 0.8px;
}
.footerhome {
    grid-column: 1 / 5;
}
.footerhome.footer {
    width: unset;
}
.footer-one {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
}
.footer-one a {
    margin-right: 1.2rem;
    font-size: 11.5px;
}
.footer-one p {
    font-size: 11.5px;
    color: rgb(124, 124, 124);
}
.footer-dos {
    flex-basis: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: space-between;
    align-items: baseline;
}
.footer-dos h4 {
    font-size: 11vw;
    line-height: 1.1;
    margin: 0;
}
.page-containerr {
    padding: 1.2rem;
    width: 100vw;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: baseline;
    justify-content: flex-start;
}
.about-container {
    margin-top: 20rem;
    flex-basis: 100%;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: baseline;
    justify-content: space-between;
}
.about-content {
flex-basis: 45%;
}
.linkss a {
    font-size: 20.3px;
    line-height: 1.17;
    color: rgb(124, 124, 124);
}
.linkss a:hover {
    color: white;
}
.about-content p {
    font-size: 20.3px;
    line-height: 1.17;
    margin-bottom: 1rem;
}
@media only screen and (max-width: 830px) {
    .intro-container iframe {
        width: 400vw;
        height: 400vh;
    }
    .mainav {
        display: flex;
        flex-direction: column;
        transition: background-color 0.3s ease-out;
    }
    .mainav.scrolled-bg {
        background: linear-gradient(180deg, black, transparent);
        mix-blend-mode: normal;
    }

    .e-s {
        flex-basis: 100%;
        display: flex;
        flex-direction: row;
        box-sizing: border-box;
        justify-content: space-between;
        margin-bottom: 0.3rem;
    }

    .center {
        flex-basis: 100%;
        display: flex;
        flex-direction: row;
        box-sizing: border-box;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 0; /* Remove fixed spacing */
        position: relative; /* Change from sticky to relative */
    }
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Adjust the animations for mobile */
    .e-s.scrolled {
        margin-bottom: 0;
    }

    .e-s.scrolled h6 {
        font-size: 13.3px;
        line-height: 0.6;
        letter-spacing: -0.05vw;
    }

    .e-s.hidden {
        transform: translateY(-100%);
        opacity: 0;
        display: none;
    }
    .texts p {
        flex-basis: 100%;
        font-size: 12.5px;
    }
    .about-container {
        margin-top: 8rem;
        flex-direction: column-reverse;
    }
    .about-content {
        flex-basis: 100%;
    }
    .about-content p {
        font-size: 16.3px;
    }
    .linkss {
        margin-top: 1rem;
    }
    .linkss a {
        color: rgb(124, 124, 124);
        font-size: 16.3px;
    }
    .projectingrid:hover .project-tag h5,
.projectingrid:hover .project-tag h2,
.projectingrid:hover .project-tag h3,
.center a:hover {
    animation: none;
}
#preloader h2 {
font-size: 10.3px;
}
#preloader .counter {
    font-size: 11px;
}
.footerhome {
    grid-column: 1 / 3;
}
.poster-image {
    z-index: 0;
}
.video-preview {
    z-index: 2;
}
}
@media only screen and (max-width: 430px) {
    .work-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .footerhome {
        grid-column: 1 / 2;
    }
    .footerhome.footer {
        width: unset;
    }
    .credit-line {
        flex-basis: 50%;
    }
    .poster-image {
        z-index: 0;
    }
    .video-preview {
        z-index: 2;
    }
}