@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root{
    font-family: "Montserrat", sans-serif;

    --margin: 92px;

    --bgcolor: rgb(23,14,70);
    --gradient1: linear-gradient(90deg,#311B92, #651FFF);
    --gradient2: linear-gradient(0deg,#651FFF 0%, #00E5FF 67%, #FF4081 100% );

    /* herogrid gradient */
    --gradient3: linear-gradient(180deg, #651FFF, #F8BBD0);
    --gradient4: linear-gradient(180deg,#B2EBF2 0%, #D1C4E9 65%, #F8BBD0 100%);
    --gradient5: linear-gradient(180deg,#84FFFF, #FFFFFF);
    --gradient6: linear-gradient(-225deg,#651FFF, #00BCD4);
    --gradient7: linear-gradient(180deg,#B2EBF2, #F8BBD0);
    --gradient8: linear-gradient(135deg,#FF4081 0%, #651FFF 100%);
    --gradient9: linear-gradient(180deg, #33d0f5, #a0fff1);

    /* Outlines gradient */
    --grandientOutline1: linear-gradient(var(--bgcolor), var(--bgcolor)) padding-box, linear-gradient(145deg,#e81cff, #40c9ff) border-box;

    /* transparent gradient */
    --gradientTr1: linear-gradient(90deg,#311b9285, #661fff7f);
    /* Grids */
    --gridVgap: 22px;
    --gridHgap: 22px;


    /* text color */
    color: white; 
    --lightTextColor: white;/* light color */
    --darkTextColor:var(--bgcolor); /* dark color */
}

body{
    background-color: var(--bgcolor);
    margin: 0;
}

body a{color: #D1C4E9;}
main{padding-bottom: 25vh;}
p{line-height: 1.6;}

section{
    margin: 0 var(--margin);
    margin-top: calc(var(--margin) * 2.5);
}
#top{margin-top: 0;}

#hero{margin-top: 25vw;}

nav, nav *{display: flex;}

nav{
    position: sticky;
    top: 0;
    justify-content: space-between;
    background-color: var(--bgcolor);
    padding: 10px 0;
    padding-right: 32px;
    z-index: 10;
}

nav ol {
    align-items: center;
    gap: 5vw;
    margin: 0;
}

nav .button{
    padding: 12px 18px;
    font-size: 1em;
    border-radius: 12px;
    background: var(--gradient1);
    white-space: nowrap;
}

.button{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(12pt, 1.7vw, 1.6em);
}
.button span {padding: 0 22px;}

.button::after, .button::before{
    font-family: bootstrap-icons;
}

.button:hover{background: var(--gradient8);}


#logo{
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    color: var(--lightTextColor);
}

.favicon {
    --size: 2em;
    width: var(--size);
    height: var(--size);
    background-color: var(--lightTextColor);
    -webkit-mask: url(assets/logo-logo-ol.svg) no-repeat center;
    mask: url(assets/logo-logo-ol.svg) no-repeat center;
}

.h1-box{
    background: var(--gradientTr1);
    border-radius: 32px;
    width: 100%;
    aspect-ratio: 3.5;
    margin-top: var(--margin);
    /* height: 342px; */
    display: flex;
    align-items: flex-end;
}

h1{
    --h1size:4.7vw;
    margin: 0 32px;
    margin-bottom: calc(var(--h1size) / -2);
    font-size: var(--h1size);
    z-index: 1;
}

.dotline::after{
    content: "";
    display: block;
    margin-top: 2vw;
    position: absolute;
    width: calc(100vw/7.5);
    aspect-ratio: 8;
    background-image: url(assets/dot-line.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.h1parallax{
    --h1ParSize: 25vw;
    width: var(--h1ParSize);
    position: absolute;
}
.h1parallax:first-of-type{
    left: 0;
    top: calc(2em + var(--margin));
    filter: blur(.5rem);
    z-index: -1;
}
.h1parallax:last-of-type{
    left: calc(100vw - var(--h1ParSize));
    top: calc(2em + var(--margin) + 100px);
    filter: blur(.2rem);
}

#hero{
    text-align: center;
}


#hero h2{
    width: fit-content;
    margin: auto;
    /* font-size: 64pt; */
    margin-bottom: 8vw;
}

h2{
    font-size: 6vw;
    margin-bottom: 8vw;
}

#hero h2::before{
    content: "SERVICES";
    position: absolute;
    font-size: 15.5vw;
    left: 10vw;
    background-image: var(--gradient2);
    color: transparent;
    background-clip: text;
    margin-top: -9.1vw;
    z-index: -1;
    opacity: .25;
}

#hero h2 + p{
    font-size: 1.6vw;
    margin: 0 calc(var(--margin) * 2);
}





.heroGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: var(--gridVgap);
    grid-row-gap: var(--gridHgap);
    min-height: 1478px;
    margin-top: var(--margin);
}

.heroGrid > div {
    border-radius: 22px;
    overflow: hidden;
}

h3{
    margin-top: 0;
    font-weight: 800;
    font-size: clamp(16pt, 2.4vw, 2.5em);
}

h3 + p {width: 70%;}
.hg6 h3 + p {width: 110%;}

.hgTitle{
    text-align: left;
    padding: 22px;
    padding-bottom: 0;
}

.hg1 { 
    grid-area: 1 / 1 / 2 / 3; 
    background: var(--gradient3);
}

.hg1 .hgItem, .hg4 .hgItem, .hg6 .hgItem{
    background-color: rgb(49 27 146 / 50%);
}
.hg2 .hgItem, .hg3 .hgItem, .hg5 .hgItem{
    background-color: rgb(255 255 255 / 70%);
    color: var(--darkTextColor);

}
.secondaryGrid1 { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.secondaryGrid1 > .hgTitle{max-width: 80%;}

.secondaryGrid1 > .hgCards {
    height: 100%;
    width: calc(60% - 22px);
    padding: 22px;
    padding-left: 40%;
    padding-top: 0;
    display: flex;
    gap: 4%;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: flex-end;
    text-align: right;
    /* background-image: url(assets/placeholder.png); */
    background-repeat: no-repeat;
    background-clip: border-box;
    border-radius: 22px;
}

.secondaryGrid1 .hgItem, .secondaryGrid2 .hgItem{
    width: 48%;
    height: 43%;
    backdrop-filter: blur(10px);    
    border-radius: 22px;
    text-align: center;
}
.hgItem > span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    padding: 10% 5%;
}



.hg2 { 
    grid-area: 1 / 3 / 2 / 4; 
    background: var(--gradient4);
}
.secondaryGrid2{
    overflow: hidden;
    color: var(--darkTextColor);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.secondaryGrid2 .hgCards{
    display: flex;
    height: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 22px;
}

.hg3 { 
    grid-area: 2 / 1 / 3 / 2; 
    background: var(--gradient5);
}

.hg3 .hgCards{
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
    margin-bottom: 22px;
}
.hg3 .hgItem{width: auto;}

.hg4 { 
    grid-area: 2 / 2 / 3 / 4; 
    background: var(--gradient6);
}

.hg4 .hgCards, .hg6 .hgCards{
    padding-left: 22px;
    background-image: url(assets/placeholder.png);
    background-position-x: 110%;
    background-position-y: center;
    width: 70%;
    padding-right: calc(30% - 22px);
    justify-content: flex-start;
}

.hg5 { 
    grid-area: 3 / 1 / 4 / 3; 
    background: var(--gradient7);
}
.secondaryGrid3 { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--darkTextColor);
}
.secondaryGrid3 > .hgTitle{max-width: 80%;}

.secondaryGrid3 > .hgCards {
    height: 100%;
    width: calc(80% - 22px);
    padding: 22px;
    padding-left: 20%;
    padding-top: 0;
    display: flex;
    gap: 4%;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: flex-end;
    text-align: right;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: 0%;
    background-clip: border-box;
    border-radius: 22px;
}
.secondaryGrid3 .hgItem{
    width: calc(92% / 3);
    height: 40%;
    background-color: rgb(255 255 255 / 70%);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    text-align: center;
}
.hg6 { 
    grid-area: 3 / 3 / 4 / 4; 
    background: var(--gradient8);
}

.hg6 .hgCards{background-image: none;}

.hg1 .hgCards{
    background-image: url(assets/design.png); 
    background-size: 50%;
    background-position-x: 0;
}
.hg4 .hgCards{background-image: url(assets/web.png); background-size: contain;}
.hg5 .hgCards{background-image: url(assets/motion.png); background-size: contain;}





#carte{
    margin-top: calc(var(--margin) * 4);
}

#carte h2{margin-top: calc(var(--margin) * -1);}

#carte h2 + p{
    font-size: 1.6vw;
    margin-top: 6vw;
}

.carteGrid .button{color: black;}
.carteGrid .button::after{
    content: "\F138";
    font-size: 3em;
}


.carteGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(9, 1fr);
    grid-column-gap: var(--gridVgap);
    grid-row-gap: var(--gridHgap);
}

.carteGrid > .card{overflow: scroll;}

.carteGrid > .card, .carteGrid > .button{
    width: calc(100% - 44px);
    height: calc(100% - 44px);
    border-radius: 22px;
    padding: 22px;
}


.carteGrid .outline{
    padding: 22px;
    background: var(--grandientOutline1);
    border: 2px solid transparent;
}


.cg1 { grid-area: 1 / 1 / 3 / 3; }
.cg2 { grid-area: 3 / 1 / 4 / 2; background: var(--gradient4)}
.cg3 { grid-area: 4 / 1 / 7 / 2; background: var(--gradient6)}
.cg4 { grid-area: 7 / 1 / 10 / 2;}
.cg5 { grid-area: 3 / 2 / 6 / 3; background: var(--gradient3);}
.cg6 { grid-area: 6 / 2 / 9 / 3; }
.cg7 { grid-area: 1 / 3 / 4 / 4; background: var(--gradient8)}
.cg8 { grid-area: 4 / 3 / 7 / 4; }
.cg9 { grid-area: 7 / 3 / 8 / 4;background: var(--gradient9)}
.cg10 { grid-area: 8 / 3 / 9 / 4; background: var(--gradient4)}


.sTitle{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.sTitle h2{
    white-space: nowrap;
}

.sTitle p{
    padding-left: var(--margin);
}

.valeursGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: var(--gridVgap);
    grid-row-gap: var(--gridHgap);
    margin-top: calc(var(--margin) / 2);
}

.valeursGrid > div{
    height: 100%;
    width: 100%;
    position: relative;
}

.valeursGrid i {font-size: 42px;}

.vg1 { grid-area: 1 / 1 / 2 / 2; }
.vg2 { grid-area: 1 / 2 / 2 / 3; }
.vg3 { grid-area: 2 / 1 / 3 / 2; }
.vg4 { grid-area: 2 / 2 / 3 / 3; }
.vg5 { 
    grid-area: 1 / 3 / 3 / 4;
    padding: 22px;
    background: var(--gradient6);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    font-size: 5vw;
    font-weight: 700;
    text-decoration: none;
    display: flex
;
    align-items: center;
}

.vg1::after { content: "01"; background-image: var(--gradient1);}
.vg2::after { content: "02"; background-image: var(--gradient4);}
.vg3::after { content: "03"; background-image: var(--gradient8);}
.vg4::after { content: "04"; background-image: var(--gradient2);}

.vg1::after, .vg2::after, .vg3::after, .vg4::after{
    top: 5px; 
    font-size: clamp(12px, 18vw, 268px);
}

.valeursGrid > div::after{
    position: absolute;
    right: 0;
    color: rebeccapurple;
    z-index: -1;
    font-weight: 800;
    line-height: 80%;
    color: transparent;
    background-clip: text;
    opacity: 0.2;
}
.vg5::after {
    --fs: 600px;
    position: absolute;
    right: 0;
    font-weight: 800;
    background-image: var(--gradient1);
    color: transparent;
    background-clip: text;
    opacity: 0.2;
    content: "\F135";
    font-family: bootstrap-icons;
    font-size: var(--fs);
    top: calc(50% + var(--fs) / 4);
    z-index: 0 !important;
    color: var(--darkTextColor) !important;
    margin: -0.23em;
    line-height: 0 !important;
}

#contact h2{
    text-align: center;
    margin: auto;
}

#contact h2 + p {
    text-align: center;
    margin-left: calc(var(--margin)* 2);
    margin-right: calc(var(--margin)* 2);
}

.contactgrid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gridVgap);
    margin-top: 32px;
}

.contactgrid > a{
    background: var(--gradient1);
    min-width: calc(33% - 66px);
    flex-grow: 1;
    padding: 22px;
    border-radius: 22px;
    font-size: unset;
    justify-content: center;
    gap: 22px;
}
.contactgrid > a::before{font-size: 28px;}
.calendlylink::before{content: "\F5BD";}
.mailtolink::before{content: "\F32C";}
.instalink::before{content: "\F437";}


@media screen and (max-width: 1130px){
    .hg6 .hgCards {
        width: calc(100% - 44px);
        padding-right: 22px;
    }
    .hg2 .hgCards{
        width: calc(100% - 44px);
        padding-right: 22px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
        padding-bottom: 22px;
        .hgItem{
            width: unset;
        }
    }
    .hg2{
        h3 + p {
            width: unset;
        }
    }
}
@media screen and (max-width: 1024px){
    :root{--margin:60px}
    p{line-height: 1.4;}
    .hg3 .hgCards, .hg6 .hgCards{
        width: calc(100% - 44px);
        padding-right: 22px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
        padding-bottom: 22px;
        .hgItem{
            width: unset;
        }
    }
    .hg3, .hg6{
        h3 + p {
            width: unset;
        }
    }
    .sTitle p {padding-right: 0;}
}
@media screen and (max-width: 908px){
    h3 + p {width: unset;}
    .hg5 .hgCards {
        width: calc(100% - 44px);
        width: -webkit-fill-available;
        padding: 22px;
    }
}
@media screen and (max-width: 768px){
    :root{--margin: 32px;}
    h2 + p{font-size: unset;}
}
@media screen and (max-width: 758px){
    .hg2, .hg3, .hg6{display: none;}
    .hg1 { grid-area: 1 / 1 / 2 / 4; }
    .hg4 { grid-area: 2 / 1 / 3 / 4; }
    .hg5 { grid-area: 3 / 1 / 4 / 4; }

    .carteGrid, .valeursGrid{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        grid-column-gap: var(--gridVgap);
        grid-row-gap: var(--gridHgap);
    }
    .cg1 { grid-area: 1 / 1 / 2 / 3; }
    .cg2 { grid-area: 2 / 1 / 3 / 2; }
    .cg3 { grid-area: 3 / 1 / 5 / 2; }
    .cg4 { grid-area: 2 / 2 / 4 / 3; }
    .cg5 { grid-area: 4 / 2 / 6 / 3; }
    .cg6 { grid-area: 6 / 2 / 8 / 3; }
    .cg7 { grid-area: 5 / 1 / 7 / 2; }
    .cg8 { grid-area: 7 / 1 / 9 / 2; }
    .cg9 { grid-area: 8 / 2 / 9 / 3; }
    .cg10 { grid-area: 9 / 2 / 10 / 3; }
    
    .vg1 { grid-area: 1 / 1 / 2 / 2; }
    .vg2 { grid-area: 1 / 2 / 2 / 3; }
    .vg3 { grid-area: 2 / 1 / 3 / 2; }
    .vg4 { grid-area: 2 / 2 / 3 / 3; }
    .vg5 { grid-area: 3 / 1 / 4 / 3; min-height: 100px;}
}

@media screen and (max-width: 620px){
    .hg1 .hgCards, .hg4 .hgCards, .hg5 .hgCards {
        width: calc(100% - 44px);
        width: -webkit-fill-available;
        padding: 22px;
    }
    .sTitle .brp{
        display: none;
    }
    nav .brp{display: none;}
}

@media screen and (max-width: 550px){
    .carteGrid {
        grid-template-columns: 1fr;
    }
    
    .cg1 { grid-area: 1 / 1 / 2 / 2; }
    .cg2 { grid-area: 2 / 1 / 3 / 2; }
    .cg3 { grid-area: 3 / 1 / 4 / 2; }
    .cg4 { grid-area: 4 / 1 / 5 / 2; }
    .cg5 { grid-area: 5 / 1 / 6 / 2; }
    .cg6 { grid-area: 6 / 1 / 7 / 2; }
    .cg7 { grid-area: 7 / 1 / 8 / 2; }
    .cg8 { grid-area: 8 / 1 / 9 / 2; }
    .cg9 { grid-area: 9 / 1 / 10 / 2; }
    .cg10 { grid-area: 10 / 1 / 11 / 2; }

    nav ol{display: none;}
}
@media screen and (max-width: 425px){
    #hero h2 + p{margin: 0;}
    #contact h2 + p {
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    .hg1 .hgCards, .hg4 .hgCards, .hg5 .hgCards {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .hg1 .hgCards .hgItem, .hg4 .hgCards .hgItem, .hg5 .hgCards .hgItem {
        width: 100%;
        position: unset;
    }
    .hg5{height: 660px;}

    .hgItem > span {
        position: unset;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}
@media screen and (max-width: 424px){
    .valeursGrid {
        grid-template-columns: 1fr;
    }
    
    .vg1 { grid-area: 1 / 1 / 2 / 2; }
    .vg2 { grid-area: 2 / 1 / 3 / 2; }
    .vg3 { grid-area: 3 / 1 / 4 / 2; }
    .vg4 { grid-area: 4 / 1 / 5 / 2; }
    .vg5 { grid-area: 5 / 1 / 6 / 2; }
}
@media screen and (max-width: 375px){
    :root{--margin: 12px;}
}