/* Tout droits réservés */
@import "portfolio.css";
@import "clients.css";
@import "easter-eggs.css";


@font-face {
    font-family: SquareFont;
    src: url('../fonts/SquareFont.ttf');
}

@font-face {
    font-family: Montserrat;
    src: url('../fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
}
@font-face {
    font-family: Montserrat;
    font-style: italic;
    src: url('../fonts/montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
}

/* integralCF */
/* regular */
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-Regular.otf");
    font-weight: 400;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-RegularOblique.otf");
    font-weight: 400;
    font-style: oblique;
}
/* medium */
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-Medium.otf");
    font-weight: 500;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-MediumOblique.otf");
    font-weight: 500;
    font-style: oblique;
}
/* demi-bold */
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-DemiBold.otf");
    font-weight: 600;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-DemiBoldOblique.otf");
    font-weight: 600;
    font-style: oblique;
}
/* bold */
@font-face {
    font-family: "IntegralCF";
    src: url("../fonts/integral-cf/IntegralCF-Bold.otf");
    font-weight: 700;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-BoldOblique.otf");
    font-weight: 700;
    font-style: oblique;
}
/* extra bold */
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-ExtraBold.otf");
    font-weight: 800;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-ExtraBoldOblique.otf");
    font-weight: 800;
    font-style: oblique;
}
/* heavy */
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-Heavy.otf");
    font-weight: 900;
}
@font-face {
    font-family: IntegralCF;
    src: url("../fonts/integral-cf/IntegralCF-HeavyOblique.otf");
    font-weight: 900;
    font-style: oblique;
}

custom-cursor-wrapper,
custom-cursor,
[data-link-to-cursor] {
    display: block;                    /* ensures getBoundingClientRect is correct */
    transform-origin: center center;   /* always pivot around the element’s center */
    -webkit-transform-origin: center center;
    will-change: transform;            /* hint to the browser: we’ll be animating this */
    backface-visibility: hidden;       /* avoids flicker on Safari */
    -webkit-backface-visibility: hidden;
}

/* Outer wrapper for the custom cursor */
custom-cursor-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(0, 0, 0);
}

/* check if mobile and hide cursor wrapper */
@media (hover: none) {
    custom-cursor-wrapper {
        display: none;
    }
}

/* Styling for the custom cursor element */
custom-cursor {
    width: 100000px;
    height: 100000px;
    max-height: 1px;
    max-width: 1px;
    border: 15px solid var(--color-1);
    transform: translate(-50%, -50%);
    transition: max-width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;

    font-family: IntegralCF, sans-serif;
    color: var(--light);
    font-size: var(--font-size-little);
}

/* Hover state styling for the custom cursor */
custom-cursor.hover {
    max-width: calc(var(--cursor-size-width) + 20px);
    max-height: calc(var(--cursor-size-height) + 20px);
    border: 7px solid var(--color-2);
    transform: translate(-50%, -50%) rotate(0deg);
    box-shadow: var(--color-2-shadow) 10px 10px;
}

[data-link-to-cursor] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}


:root {
    --dark: #010009;
    --dark-shadow: #000000;
    --light: #f9fdff;
    --light-shadow: #cbcfd3;

    --color-1: #FF00A7;
    --color-1-shadow: #a60085;
    --color-2: #00FF0C;
    --color-2-shadow: #00b20f;


    --nav-width: 75px;
    --font-size-little: 1.5em;
    --font-size-medium: 2.5em;
    --font-size-large: 4em;
    --item-grid-gap: 15px;
    --cursor-size-width: 30px;
    --cursor-size-height: 30px;
}


/* theme dark and light */
/*@media (prefers-color-scheme: dark) {
    :root {
        --dark: #010009;
        --dark-shadow: rgba(1, 0, 9, 0.9);
        --light: #f9fdff;
        --light-shadow: rgba(249, 253, 255, 0.9);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --dark: #f9fdff;
        --dark-shadow: rgba(249, 253, 255, 0.9);
        --light: #010009;
        --light-shadow: rgba(1, 0, 9, 0.9);
    }
}

@media (prefers-color-scheme: no-preference) {
    :root {
        --dark: #010009;
        --dark-shadow: rgba(1, 0, 9, 0.9);
        --light: #f9fdff;
        --light-shadow: rgba(249, 253, 255, 0.9);
    }
}*/

* {
    box-sizing: border-box;
}

::selection {
    color: var(--dark);
    background-color: var(--color-2);
}

::-webkit-scrollbar-thumb {
    background-color: var(--light);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-2);
}

::-webkit-scrollbar-track {
    background-color: var(--dark);
}

::-webkit-scrollbar {
    width: 20px;
}

html {
    scroll-behavior: smooth;
}

body {
    padding: 0;
    margin: 0;

    font-family: IntegralCF, sans-serif;
    letter-spacing: 2px;

    background-color: var(--dark);
    color: var(--light);

    cursor: none;
    overflow: hidden auto;
}


nav {
    width: var(--nav-width);
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 200;

    padding: 25px 0;

    justify-content: space-between;
    align-items: center;
}

nav > *, nav {
    display: flex;
    flex-direction: column;
}

nav-links {
    align-items: center;
    gap: 20px
}

nav-socials {
    gap: 15px
}

nav-links a {
    display: block;
    text-align: center;
    font-size: var(--font-size-little);
    color: var(--light);
    text-decoration: none;

    position: relative;
    writing-mode: vertical-rl;
}

nav-links a span {
    display: block;
    margin-left: 5px;
}

nav-links a img {
    width: 30px;
    height: 30px;
}

nav-links a:hover img {
    /*transform: scale(2);*/
}

a.current {
    color: var(--color-1);
}

a:hover {
    cursor: none;
    color: var(--color-2);
}

nav-socials svg {
    width: 30px;
    height: 30px;
}

locator[data-linked-id] {
    display: block;
    margin-top: 75px;
}

h1 {
    background-color: var(--dark);

    font-weight: bolder;
    font-size: var(--font-size-large);
    letter-spacing: 4px;
    text-align: left;
    padding: 0 0 20px 0;
    margin: 0;

    z-index: 1;
    top: 0;
    position: sticky;
}

/* les tableaux */
table {
    margin-bottom: 170px;
    text-align: center;
}

a {
    color: var(--light);
    text-decoration: none;
}

a, [data-cursor-text] {
    cursor: none;
    transition: transform 0.3s ease;
}

p {
    font-family: Montserrat, sans-serif;
    font-size: var(--font-size-little);
    font-weight: 500;
    line-height: 1.3;
}

/* droits d'auteur */
footer {
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
    font-size: calc(var(--font-size-little) / 1.2)
}


svg [fill^="#ff"] {
    fill: var(--light);
}

svg :not([fill^="#ff"]) {
    fill: var(--dark);
}

a:hover svg [fill^="#ff"] {
    fill: var(--color-2);
    cursor: none;
}

/* le model */
#portfolio, #clients, #about {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    gap: var(--item-grid-gap);
}

img {
    width: 100%;
    height: 100%;
}

.squares > *, .square {
    display: block;
    cursor: none;
    width: calc(100% / 5 - var(--item-grid-gap));
}

#projects > * {
    width: calc(100% / 3 - var(--item-grid-gap))
}

form {
    width: 100%;
    letter-spacing: 2px;
    font-size: var(--font-size-little);
}

input,
textarea,
button {
    width: 100%;
    padding: 15px;
    margin: 15px 0 30px 0;
    border: solid 4px var(--light);
    background-color: var(--dark);
    color: var(--light);
    letter-spacing: 2px;
    font-size: var(--font-size-little);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-1);
}

button:hover {
    background-color: var(--color-2);
    color: var(--dark);
    border-color: var(--color-2);
    cursor: none;
}

button:focus {
    outline: none;
    background-color: var(--color-1);
    color: var(--dark);
    border-color: var(--color-1);
}

form,
input::placeholder,
textarea::placeholder {
    letter-spacing: 2px;
}

textarea {
    width: 100% !important;
    min-height: 450px;
    resize: vertical;
}

.header {
    height: 100vh;
    overflow: hidden;
    width: 100%/*calc(100vw - calc(1.25 * var(--nav-width)));*/
}

.header .summary {
    z-index: 1;
    background-color: var(--dark);
    display: block;
    height: fit-content;
    width: 490px;
    position: absolute;
    top: 50%;
    left: calc(50% + 60px);
    transform: translate(-50%, -50%);
    padding-left: 55px;
    border: var(--light) 7px solid;
    box-shadow: var(--light-shadow) 10px 10px;
}

.header .summary .animated-head {
    top: -50px;
    left: -120px;
    width: 180px;
    height: 180px;
    position: absolute;
    transform: rotate(-10deg);
}

main {
    margin: 0 0 0 var(--nav-width);
}

main content p, main content ol, main content li, main content ul, main content strong,
input, textarea{
    font-family: "SquareFont", sans-serif;
    font-size: var(--font-size-medium);
    letter-spacing: 0.05rem;
}

#about {
    margin-bottom: 50px;
}

#about p {
    margin: 5px 0;
    padding-right: 20%;
}

/* background on image on right and adapting to element size */
#about:before {
    opacity: 0.4;
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -5%;
    left: 25%;
    z-index: -1;
    background: url('../images/artworks/moska-full-body.png') no-repeat center;
    background-size: contain;
    transform: rotate(-20deg);
}

.sliding-texts {
    display: flex;
    flex-direction: column;
    opacity: 0.35;
}

@media (max-width: 1300px) {
    .squares > *, .square {
        width: calc(100% / 4 - var(--item-grid-gap));
    }
}


@media (max-width: 1000px) {
    .header .summary {
        width: 350px;
    }

    .header .summary .animated-head {
        top: -30px;
    }

    .squares > *, .square {
        width: calc(100% / 3 - var(--item-grid-gap));
    }

    #projects > * {
        width: calc(100% / 2 - var(--item-grid-gap))
    }
}


@media (max-width: 750px) {
    .header .summary {
        width: 290px;
    }

    .squares > *, .square {
        width: calc(100% / 2 - var(--item-grid-gap));
    }

    #projects > * {
        width: calc(100% - var(--item-grid-gap))
    }
}

