@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
    background-color: #000;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #000;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body.active {

    background-color: black;
  margin: 0;
  padding: 0;
  height: 100%;
  z-index: 99;

}

/* ---> NAVBAR SECTION <---  */

.header{
    background-color: transparent;
}

#logo img{
    height: 60px;
    padding: 0 5rem;
}

.flex-container {
    padding: 0 5rem;
    
}

.logo {
    z-index: 99;
}

li{
    list-style: none;
    font-family: 'Roboto', sans-serif;
    font-size: 25px;
    text-transform: uppercase;
}

a{
    text-decoration: none;
    color: #fff;
}

.navbar{
    position: fixed;
    top: 2%;
    left: 0;
    width: 100%;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.nav-menu{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.nav-link{
    transition: 0.7s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover{
    color:#9fa16e;
    background-color: #000;
    
}

.hamburger{
    display: none;
    cursor: pointer;
    z-index: 99;
}

.bar{
    display: block;
    width: 40px;
    height: 5px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}


@media(max-width:768px){
    .hamburger{
        display: block;
        padding-right: 2em;
    }

    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
        background-color: #000;
    }

    .hamburger.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
        background-color: #000;
    }

    .header.active {
        background-color: rgba(38,38,38,0.5);
        transition: 0.3s;
    }

    .nav-menu{
        position: fixed;
        padding: 0%;
        margin: 0;
        left: 0;
        top: 0px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
        height: 100dvh;

    }

    .navbar{
        padding: 0%;
    }

    .nav-item {
        margin: 16px 0;
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        line-height: 1.1;
    }

    .nav-link {
        color: #333;
        text-transform: uppercase;
    }

    .nav-menu.active{
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform 0.3s ease;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    #logo img{
        height: 60px;
        padding: 0 2rem;
    }
}

.navbar-transparent {
    background-color: rgba(0, 0, 0, 1); /* Change the transparency value as needed */
}

/* ---> HOME PROJECTS LIST SECTION <---  */

.home-page {
    background: #000;
    isolation: isolate;
    min-height: 100svh;
}

.background-video,
#backgroundImage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-video {
    object-fit: cover;
    opacity: 0.72;
    transition: opacity 180ms ease;
}

.background-video.is-hidden {
    opacity: 0;
}

#backgroundImage {
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 180ms ease;
}

#backgroundImage.is-active {
    opacity: 1;
}

#bgImage {
    display: block;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

section.projects {
    --project-row-height: clamp(3.5rem, 5.5vw, 5.4rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100svh;
    width: min(100% - 3rem, 90rem);
    margin: 0;
    padding: 7rem 2rem 7rem clamp(2rem, 9vw, 10rem);
    position: relative;
    z-index: 1;
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

.projects-viewport {
    width: 100%;
    height: calc(var(--project-row-height) * 4.7);
    overflow: hidden;
    touch-action: pan-x;
    outline: none;
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 7%,
        #000 93%,
        transparent 100%
    );
}

.projects-viewport:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 0.5rem;
}

.projects-track {
    will-change: transform;
}

.projects-track.is-moving {
    pointer-events: none;
}

.project-title {
    margin: 0;
    padding: 0.08em 0.28em;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(1.25rem, 2.1vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.025em;
    text-align: left;
    white-space: nowrap;
    color: #fff;
    transition: color 180ms ease, background-color 180ms ease;
}

.project-title-link {
    display: flex;
    align-items: center;
    flex: 0 0 var(--project-row-height);
    height: var(--project-row-height);
    width: fit-content;
    max-width: 100%;
}

.mobile-slide-video {
    display: none;
}

.project-title-link:hover .project-title,
.project-title-link:focus-visible .project-title {
    color: #9fa16e;
}

.project-title-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

@media (min-width: 769px) {
    .project-title-link:hover .project-title,
    .project-title-link:focus-visible .project-title {
        background-color: #000;
    }
}

@media (max-width: 768px) {
    .home-page {
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: pan-y;
    }

    .home-page > .background-video,
    .home-page > #backgroundImage {
        display: none;
    }

    section.projects {
        width: 100%;
        height: 100svh;
        height: 100dvh;
        min-height: 100svh;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
        display: block;
    }

    .projects-viewport {
        width: 100%;
        height: 100svh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .projects-viewport::-webkit-scrollbar {
        display: none;
    }

    .projects-track {
        width: 100%;
        will-change: auto;
    }

    .project-title {
        position: relative;
        z-index: 2;
        font-size: clamp(1.05rem, 4.8vw, 1.6rem);
        width: 100%;
        padding: 0 1.25rem;
        text-align: center;
        white-space: normal;
        text-wrap: balance;
        line-height: 1.05;
        letter-spacing: 0.03em;
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.1375);
    }

    .project-title-link {
        position: relative;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: none;
        height: 100svh;
        height: 100dvh;
        overflow: hidden;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        background: #000;
    }

    .project-title-link:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -6px;
    }

    .mobile-slide-video {
        position: absolute;
        inset: 0;
        z-index: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        background: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .background-video,
    #backgroundImage,
    .project-title {
        transition: none;
    }
}

/* ---> PROJECTS PAGE HERO VIDEO SECTION  <---  */

.hero-video-section {
    position: relative;
    height: calc(100vh - 70px);    
    overflow: hidden;
    z-index: 0;
  }
  
  .video-container {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  /* Media queries for responsive heights */
@media (max-width: 768px) {
    .hero-video-section {
      height: 50vh;
    }
  }
  
  @media (min-width: 769px) {
    .hero-video-section {
      height: 80vh;
    }
  }

.projectPage-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    }

.projectPage-project-title {
  font-size: 6vh;
  color: white;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .projectPage-hero-content {
    width: 90%;
    max-width: 400px;
  }

  .projectPage-project-title {
    font-size: 3.5vh;
  }
}

/* ---> PROJECTS PAGE PROJECT DESCRIPTION SECTION  <---  */

.project-section{
    background-color: #000;
    padding: 1px;
    
}

.projectPage-project-subTitle {
    color: whitesmoke;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    position: relative;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4vh;
    max-width: 1500px;
    margin: 0 auto;
    padding: 5% 0 0 0;
}

.projectPage-project-description {
    color: whitesmoke;
    font-family: 'Roboto', sans-serif;
    position: relative;
    width: 100%;
    height: 100%;
    font-size: 200%;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 2% 0;
}

.projectPage-project-description p{
    padding: 0 5%;
}

.projectPage-project-description .projectPage-project-credits {
    width: fit-content;
    margin: 1em auto;
    text-align: left;
}

@media (max-width: 768px) {
    .projectPage-project-subTitle {
        font-size: 2.5vh;
    }
  
    .projectPage-project-description {
      font-size: 150%;
    }
  }

/* ---> PROJECTS PAGE VIMEO VIDEO SECTION  <---  */

.embedded-video-section{
    background-color: #000;
}
.project-page-video-container{
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
}
  .video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 0 auto;
    overflow: hidden;
  }
  
  .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  @media (max-width: 768px) {
    .video-wrapper {
        position: relative;
        width: 90%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        margin: 0 auto;
        max-width: 100%;
      }
  }

/* ---> PROJECTS PAGE STILLS GALLERY SECTION  <---  */


.gallery-section{
    background-color: #000;
}

.container{
    width: 80%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4% 0%;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 grid for desktop */
    gap: 10px;

}

.gallery-item {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Maintain a square aspect ratio for desktop */
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 798px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack images in a single column for mobile */
    }

    .gallery-item {
        padding-bottom: 50%; /* Adjust the aspect ratio for mobile */
    }
}


  
/* ---> CONTACT PAGE HERO SECTION <---  */

#contactPage-hero-section {
    box-sizing: border-box;
    background-color: #000;
    padding: 6rem 1rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    min-height: 100svh;
    height: auto;
    display: flex;
    align-items: center;
}

.contactPage-hero-content {
    width: min(100%, 1600px);
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
}

.contactPage-hero-text {
    flex-basis: 50%;
    text-align: left;
    margin-bottom: 0rem;
    padding-right: 12%;
}

.contactPage-hero-text h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.contactPage-hero-text p {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-form {
    flex-basis: 50%;
    padding: 2rem;
    border-radius: 10px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group {
    display: flex;
    margin-bottom: 1.5rem;
    justify-content: space-between;
}

.form-group label {
    color: whitesmoke;
    margin-bottom: 0.5rem;
}

.lastname {
    float: left;
}

.half-width {
    flex-basis: calc(50% - 1rem); /* Adjust the margin value as needed */
    margin-right: 1rem; /* Add some space between the fields */
    display: flex;
    flex-direction: column;
}
.full-width{
    flex-basis: calc(100% - 1rem); /* Adjust the margin value as needed */
    margin-right: 1rem; /* Add some space between the fields */
    display: flex;
    flex-direction: column;
}
.email-field,
.message-field {
    flex-basis: 100%;
}

input {
    height: 40px;
}

/* .email-field {
    flex-basis: 100%; ////////* Added a new class for the email input field
    margin-bottom: 1rem;
} */

textarea {
    height: 120px;
    flex-basis: 100%;
    resize: vertical; /* Added to allow vertical resizing of the message textarea */
}

button[type="submit"] {
    background-color: #000;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: white;
    color: #9fa16e;
}

@media (max-width: 798px) {

    #contactPage-hero-section {
        min-height: 100svh;
        height: auto;
        padding: 7rem 1rem 3rem;
        display: block;
    }

    .contact-form {
        flex-basis: 100%;
        width: 100%;
        padding: 1rem 0;
        border-radius: 10px;
        background-color: transparent;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .contactPage-hero-content {
        width: min(100%, 38rem);
        max-width: none;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        align-items: center;
        
    }

    .contactPage-hero-text {
        flex-basis: 50%;
        text-align: center;
        margin-bottom: 0rem;
        padding: 0 7%;
    }

    .contactPage-hero-text h1 {
        font-size: clamp(1.7rem, 8vw, 2.5rem);
        margin-top: 0;
    }

    .contactPage-hero-text p {
        margin-bottom: 1.5rem;
    }

    .form-group {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .half-width,
    .full-width {
        flex-basis: 100%;
        width: 100%;
        margin-right: 0;
    }

    input {
        box-sizing: border-box;
        width: 100%;
        height: 60px;
    }

    textarea {
        box-sizing: border-box;
        width: 100%;
    }

    button[type="submit"] {
        background-color: #000;
        text-align: center;
        text-transform: uppercase;
        color: #fff;
        padding: 1rem 2rem;
        border: none;
        border-radius: 4px;
        font-size: 1.5rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: 100%;
    }
    
    button[type="submit"]:hover {
        background-color: white;
        color: #9fa16e;
    }

}

/* ---> FOOTER SECTION <---  */

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    background-color: transparent;
    color: #fff;
    padding: 2rem;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

footer p {
    margin: 0;
}

.home-page footer,
.contact-page footer {
    z-index: 1000;
}

.hero-video-section,
.project-section,
.project-page-video-container,
.gallery-grid {
    position: relative;
    z-index: 2;
}
