/* ==========================================================================
   1. Base Styles - Mobile First
   ========================================================================== */

@font-face {
    font-family: 'EuropaGroteskLight';
    src: url('fonts/EuropaGroteskSH-Lig.woff2') format('woff2'),
        url('fonts/EuropaGroteskSH-Lig.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EuropaGroteskBold';
    src: url('fonts/EuropaGroteskSH-Bol.woff2') format('woff2'),
        url('fonts/EuropaGroteskSH-Bol.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EuropaGroteskMedium';
    src: url('fonts/EuropaGroteskSH-Med.woff2') format('woff2'),
        url('fonts/EuropaGroteskSH-Med.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* A better box model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    /* Set a default font and background color */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "EuropaGrotesk";
    line-height: 1.6;
    color: white;
    background-color: black;

    /* Remove default margin */
    margin: 0;

    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Basic styles for main layout blocks */
main,
footer {
    padding: 1rem;
}

h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h2 {
    font-family: 'EuropaGroteskLight', sans-serif;
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    line-height: normal;
    text-transform: uppercase;
}

h3 {
    font-family: 'EuropaGroteskMedium', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    line-height: normal;
    text-align: left;
}

h4 {
    font-family: 'EuropaGroteskLight', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: normal;
}

h5 {
    font-family: 'EuropaGroteskMedium', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: normal;
    justify-self: flex-start;
    margin-bottom: 5px;
}

p {
    font-family: 'EuropaGroteskLight', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: normal;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo {
    width: 30px;
    display: flex;
}

header img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
}


.lang {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.lang button {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    font-family: EuropaGroteskLight, sans-serif;
    padding: 0;
    transition: 200ms;
}

.lang button:hover {
    color: lightgray;
    transition: 200ms;
}

.lang button.active {
    pointer-events: none;
    cursor: default;
    font-weight: bold;
}

.contactButton {
    font-weight: bold;
}

main {
    padding-top: 0;
    padding-bottom: 0;
}

.previewContainer {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

video {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    clip-path: inset(0 0 0 0 round 7px);
}

.previewTitle {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -20%);
    width: 70%;
    pointer-events: none;
}

#showreel {
    margin-top: 3rem;
    padding: 0 20px;
}

.showreelContainer {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
}

.showreelContainer2 img {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.boutonShowreelContainer {
    margin-top: 0.8rem;
    border: 2px solid white;
    width: 160px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 300ms;
    text-transform: uppercase;
    text-decoration: none;
    background: transparent;
    position: relative;
    transition: all 1s;
    overflow: hidden;
    z-index: 0;
    gap: 8px;
}

.boutonShowreelContainer::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -40px;
    transform: skewX(45deg);
    background-color: white;
    z-index: -2;
    transition: all 1s;
}

.boutonShowreelContainer:hover::before {
    width: 160%;
}

.boutonShowreel {
    font-size: 1rem;
    font-family: EuropaGroteskBold, sans-serif;
    text-decoration: none;
    color: white;
    transition: 500ms;
}

.boutonShowreelContainer:hover .boutonShowreel {
    color: black;
    transition: 500ms;
}

.fleche {
    color: #ffffff;
    transition: 500ms;
}

.boutonShowreelContainer:hover .fleche {
    color: black;
    transition: 500ms;
}

#works {
    margin-top: 3rem;
}

.worksContainer {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
}

.workContainer {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.workContainer img {
    width: 100%;
    height: 100%;
    min-height: 200px; /* base height for single-row items */
    object-fit: cover;
    display: block;
}

.bookContainer {
    grid-column: span 2 / span 2;
}

.weddingContainer {
    grid-row-start: 2;
}

.snowContainer {
    grid-row-start: 2;
}

.vlogContainer {
    grid-row-start: 3;
}

.lighthouseContainer {
    grid-row-start: 3;
}

.faithContainer {
    grid-column: span 2 / span 2;
}

.motionDesignContainer {
    grid-row-start: 6;
}

.workContainer:hover img {
    transition: 300ms;
    filter: brightness(0.5);
}

.workContainer img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: 300ms;
}

.workOverlay {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    text-align: center;
    color: white;
    padding: 10px 10px;
    height: 100%;
    align-items: flex-end;
}

.workInfos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.workInfos p {
    position: absolute;
    bottom: 10px;
    padding-right: 10%;
    display: none;
}

.workOverlay.show-info .workInfos p {
    display: block;
}

.workOverlay.show-info .workInfos h3,
.workOverlay.show-info .workInfos h4 {
    display: none;
}

.fa-circle-info {
    position: absolute;
    top: 10px;
    right: 10px;
}

#contact {
    margin-top: 3rem;
}

#contact h2 {
    display: none;
}

.contactContainer {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    text-align: center;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 0px;
}

.photoContact img {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.getInTouch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #4f4f4f;
    transition: all 0.2s ease-in;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    cursor: pointer;
    color: black;
    z-index: 1;
    font-family: EuropaGroteskBold, sans-serif;
}

.button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background-color: black;
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.button:hover {
    color: #ffffff;
    border: 1px solid white;
}

.button:hover:before {
    top: -35%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.button:hover:after {
    top: -45%;
    background-color: black;
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.contactInfos {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.links {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.links a {
    color: white;
    transition: 200ms;
}

.links a:hover {
    color: lightgray;
    transition: 200ms;
}

@media (min-width: 400px) {
    .contactContainer {
        padding: 0 20px;
    }
}


/* ==========================================================================
   2. Media Queries - For larger screens
   ========================================================================== */

/* Example for tablets and desktops (e.g., screens wider than 768px) */
@media (min-width: 768px) {
    body {
        /* You could increase the font size for better readability on larger screens */
        font-size: 1.1rem;
    }

    header,
    main,
    footer {
        /* Add more horizontal padding on larger screens */
        padding: 1.5rem 2rem;
    }

    main {
        padding-top: 0;
        padding-bottom: 0;
    }

    header {
        padding: 0.65rem 50px;
        background-color: black;
        position: relative;
    }

    nav {
        gap: 50px;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    h4 {
        font-size: 1.2rem;
    }

    h5 {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
    }

    p {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
    }

    nav a:hover {
        color: lightgray;
        transition: 200ms;
    }

    nav a {
        transition: 200ms;
    }

    .previewContainer {
        max-width: 100%;
    }

    .previewTitle {
        width: 95%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    #showreel {
        padding: 0 15%;
        margin-top: 100px;
    }

    .showreelContainer {
        width: 100%;
        justify-content: center;
        gap: 100px
    }

    .boutonShowreelContainer {
        width: 200px;
        height: 40px;
    }

    .boutonShowreel {
        font-size: 1.2rem;
    }

    .showreelContainer2 {
        width: 300px;
    }

    .showreelContainer2 img {
        width: 100%;
        margin: 0;
    }

    #works {
        padding: 0 15%;
        margin-top: 100px;
    }

    .worksContainer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 10px;
    }

    .workContainer img {
        width: 100%;
        height: 100%;
        min-height: 300px;
        /* base height for single-row items */
        object-fit: cover;
        display: block;
    }


    .workContainer {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
    }

    .bookContainer {
        grid-area: 1 / 2 / 2 / 4;
    }

    .weddingContainer {
        grid-area: 1 / 1 / 2 / 2;
    }

    .snowContainer {
        grid-area: 2 / 1 / 4 / 3;
    }

    .vlogContainer {
        grid-column-start: 3;
        grid-row-start: 2;
    }

    .lighthouseContainer {
        grid-column-start: 3;
        grid-row-start: 3;
    }

    .faithContainer {
        grid-column: span 3 / span 3;
        grid-row-start: 4;
    }

    .faithContainer img {
        content: url("images/faithPoster.png");
    }

    .documentaryContainer {
        grid-row-start: 5;
    }

    .reelContainer {
        grid-column: span 2 / span 2;
        grid-row-start: 5;
    }

    .reelContainer img {
        content: url("images/reelPoster.png");
    }

    .motionDesignContainer {
        grid-column: span 2 / span 2;
        grid-row-start: 6;
    }

    .motionDesignContainer img {
        content: url("images/motiondesignPoster.png");
    }

    .workOverlay {
        padding: 20px 20px;
        overflow: hidden;
    }

    .workInfos p {
        margin-top: 10px;
        opacity: 0;
        transition: 300ms cubic-bezier(0, -0.01, .56, .99);
        display: block;
        position: static;
    }

    .workContainer:hover .workInfos p {
        opacity: 1;
        transition: 300ms cubic-bezier(0, -0.01, .56, .99);
    }

    .workInfos {
        margin-top: 10px;
        transition: 300ms cubic-bezier(0, -0.01, .56, .99);
    }

    .workContainer:hover .workInfos {
        transform: translateY(0px);
        transition: 300ms cubic-bezier(0, -0.01, .56, .99);
    }

    .snowInfos {
        transform: translateY(50px);
    }

    .bookInfos {
        transform: translateY(50px);
    }

    .vlogInfos {
        transform: translateY(70px);
    }

    .lighthouseInfos {
        transform: translateY(70px);
    }

    .faithInfos {
        padding-right: 50%;
        transform: translateY(50px);
    }

    .documentaryInfos {
        padding-right: 20px;
        transform: translateY(70px);
    }

    .reelInfos {
        padding-right: 20px;
        transform: translateY(50px);
    }

    .weddingInfos {
        transform: translateY(50px);
    }

    .motionDesignInfos {
        padding-right: 20px;
        transform: translateY(50px);
    }

    .podcastInfos {
        padding-right: 20px;
        transform: translateY(70px);
    }

    #contact {
        padding: 0 15%;
        margin-top: 70px;
        margin-bottom: 100px;
    }

    #contact h2 {
        display: block;
    }

    .contactContainer {
        padding: 0;
        flex-wrap: nowrap;
        margin-top: 30px;
        gap: 40px;
    }

    .contactInfos {
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
    }

    .photoContact img {
        width: 285px;
    }

    .getInTouch {
        flex: 2;
    }

    .getInTouch h3 {
        font-size: 2rem;
    }

    .contactInfos {
        flex: 1;
        align-items: flex-start;
    }

}

@media (min-width: 1920px) {

    .snowInfos {
        transform: translateY(50px);
    }

    .vlogInfos {
        transform: translateY(70px);
        padding-right: 20px;
    }

    .lighthouseInfos {
        transform: translateY(70px);
        padding-right: 40px;
    }

    .faithInfos {
        padding-right: 60%;
        transform: translateY(50px);
    }

    .documentaryInfos {
        padding-right: 40px;
        transform: translateY(70px);
    }

    .reelInfos {
        padding-right: 40px;
        transform: translateY(50px);
    }

}