:root {
    --base: rgb(255, 255, 255);
    --neutral: #040f0f;
    --primary: #c1ff72;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100vw;
}

body {
    width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    counter-reset: page-counter;
    background: var(--base);
}



* {
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    font-size: 18px;
}

h1 {
    font-family: "Playfair Display SC", serif;
    font-style: italic;

    font-size: 86px;
    color: var(--primary);
    margin: 0;
    font-weight: 100;
    transform: scaleX(1.25);
}

h2,
h3 {
    font-size: 128px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    color: var(--neutral);
    position: relative;
    transform: scaleX(1.25);

}

h3 {
    font-size: 60px;
    max-width: 100vw;
    display: flex;
    justify-self: center;
    margin-left: 10vw;
    margin-bottom: 1.25em;
    transform: scaleX(1);
}

h4 {
    font-family: "Playfair Display SC", serif;
    font-style: italic;
    color: var(--neutral);
}

h4 a{
    opacity: 100%;
    font-size: 48px;
    font-weight: 700;
}



p {
    font-weight: 300;
    text-transform: capitalize;
    opacity: 60%;
    margin-top: -1.5em;
}

h2>span {
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: #c1ff72;
    text-decoration-thickness: 12px;
}

header {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--primary);
    writing-mode: vertical-rl;
    padding: 4em 0.5em;
    justify-content: start;
    display: flex;
    z-index: 999;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--neutral);
    opacity: 60%;
    font-weight: 500;
}

header nav a {
    padding: 0.5em;
    position:relative;
    transition-duration: 0.3s;
    overflow: hidden;
}

header nav a:hover {
    opacity: 100%;
    transition-duration: 0.3s;
    color:var(--base);
 }

header nav a::after{
    content: "";
    position:absolute;
    background-color: var(--neutral);
    right:100%;
    transition-duration: 0.3s;
    z-index: -5;
    top:0;
    bottom:0;
}

header nav a:hover::after{
    content: "";
    height:100%;
    width:100%;
    right:0;
    transition-duration: 0.3s;

}

section {
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    padding: 0 3em;
    position: relative;
    align-items: start;
    counter-increment: page-counter;
    margin-bottom: 10vh;
}

section#hero::after {
    content: none;
}

section#hero {
    min-height: 100vh;
    margin-bottom: 0;
}

section::after {
    content: counter(page-counter, decimal-leading-zero);
    position: absolute;
    top: 2.5em;
    right: 6em;
    font-size: 18px;
    opacity: 60%;
}


@media only screen and (max-width: 950px) {
    header {
        padding: 4em 0.25em;
    }

    section {
        padding-left: 1em;
        padding-right: 2em;
    }

    section::after {
        display: none;
    }

    header nav a:active::after{
        right:0%;
        transition-delay: 0.1s;
    }
}

#hero {
    justify-content: center;
    align-items: center;
}

#hero img {
    filter: grayscale(100%);
    width: 500px;
    max-width: 100%;
    object-fit: cover;
    height: 33vh;
    object-position: 50% 0%;
    margin: 0;
    margin: -1.5em 0 -4em;
    z-index: -5;
}


.arrowDown {
    font-size: 180px;
    color: var(--primary);
    transform: rotate(90deg);
    position: absolute;
    margin-top: -0.4em;
    margin-left: -0.305em;
    z-index: -5;
    -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}


#hero .borderText {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    opacity: 40%;
    align-self: start;

}




article {
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    max-height: auto;
}

/* break point to be added at 950px */

@media only screen and (max-width: 950px) {
    #hero {
        justify-content: center;
    }


    #hero h1 {
        font-size: 8vw;
        text-shadow: #040f0f 1px 0px;
    }

    #hero h2 {
        font-size: 12vw;
    }

    .arrowDown {
        font-size: 20vw;
        margin-top: -0.3em;
        transform: scaleY(1.5), rotate(90deg);
    }

    h3 {
        font-size: 10vw;
    }

    #hero p {
        padding-top: 1em;
    }

    #hero .borderText {
        display: none;
    }

    #hero img {
        height: 60vh;
        max-width: none;
    }
}

#portfolio>article>figure {
    width: 25vw;
    height: auto;
    margin: 0;
}

#portfolio figure:nth-of-type(2) {
    transform: translateY(5em)
}

#portfolio figure:nth-of-type(3) {
    transform: translateY(10em);
}

#portfolio>article img {
    width: 100%;
    height: 20vw;
    object-fit: cover;
}

#portfolio figure>h4 {
    margin-bottom: 1.75em;
}


#portfolio>article h4 span {
    color: var(--primary);
    font-size: 48px;
    padding: 0em 0.25em;
}

.arrowRight {
    font-size: 180px;
    color: var(--primary);
    position: absolute;
    opacity: 100%;
    right: 0.6em;
    bottom: 0.6em;
    line-height: 0.6em;
    height: 0.6em;
    overflow: hidden;
    text-align: start;
    animation: goRight 2s infinite ease-in-out;}

.arrowRight::after {
    content: "see more";
    font-size: 18px;
    font-family: "Playfair Display SC", serif;
    font-style: italic;

    color: var(--neutral);
    position: absolute;
    right: 4.1em;
    bottom:0;
}

.arrowRight:hover{
    animation-duration: 0.5s;
    transition-duration: 0.3s;
}



/* break point to be added at 950px ^^ */

@media only screen and (max-width: 950px) {
    #portfolio>article {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #portfolio>article>figure {
        width: 80vw;
        max-width: 900px;
    }

    #portfolio>article>figure * {
        height: auto;
        max-height: 45vh;
        max-width: 100%;
    }

    #portfolio {
        align-items: center;
    }

    #portfolio h3 {
        margin: 0;
    }

    .arrowRight {
        bottom: -45vh;
    }

    section {
        margin-bottom: 50vh;
    }

}


#prices img {
    max-width: 450px;
    max-height: 525px;
    height: 50vh;
    width: 50vw;
    object-fit: contain;
}

#prices h4,
#about h4 {
    border-bottom: 2px solid var(--primary);
}

#prices p,
#about p {
    margin: 1.5em 0;
    font-size: 18px;
}

#prices figure {
    display: flex;
    width: 35%;
    justify-content: space-around;
}

#prices figure:nth-child(1) {
    margin-top: 6em;
}

ul {
    padding-left: 0.25em;
    list-style-type: none;
    width: 200px
}

.arrowLeft {
    font-size: 180px;
    color: var(--primary);
    position: absolute;
    opacity: 100%;
    left: 0.7em;
    bottom: 0;
    height: 0.6em;
    line-height: 0.6em;
    transform: rotate(180deg);
    animation: 2s goLeft infinite ease-in-out;
}

.arrowLeft:hover{
    transition-duration: 0.3s;
    animation-duration: 0.5s;

}

@keyframes goLeft {
    from,to{transform:translateX(0.1em) rotate(180deg)}
    50%{transform:translateX(0) rotate(180deg)}
    
}

@keyframes goRight {
    from,to{transform:translateX(0.1em)}
    50%{transform:translateX(0)}
    
}

.arrowLeft::after {
    content: "Pricing";
    font-size: 18px;
    font-family: "Playfair Display SC", serif;
    font-style: italic;

    color: var(--neutral);
    position: absolute;
    right: 5em;
    transform: rotate(180deg);
    bottom: 0;
}


/* break point to be added at 950px ^^ */
@media only screen and (max-width: 950px) {

    #prices article {
        flex-direction: column-reverse;
    }

    #prices article figure {
        width: 80%;
        flex-direction: column;
    }

    #prices img {
        max-width: none;
        width: 100%;
    }

    .arrowLeft {
        bottom: -20vh;
        left: 0.5em;
    }
}

#about figure {
    display: flex;
    width: 100%;
}

#about img {
    max-width: 600px;
    filter: grayscale(100%);
    margin-top: -10em;
    z-index: -1;
    margin-left: 12em;
    margin-right: 8em;
    opacity: 80%;
}

#about span {
    font-size: inherit;
    color: var(--primary);
}

#about h3 {
    margin-top: 1.5em;
    margin-bottom: -0.5em;
    z-index: 10;
}

#about h4 {
    margin-bottom: -0.5em;
}

/* break point to be added at 1250px ^^ */

@media only screen and (max-width: 1250px) {
    #about figure {
        flex-direction: column;
        align-items: center;
    }

    #about h3 {
        position: absolute;

        font-size: 48px;
    }
}

@media only screen and (max-width: 800px) {
    #about h3 {
        transform: rotate(270deg);
        left: 0;
        margin: 0;
    }

    ul {
        padding-left: 0.25em;
        list-style-type: none;
        width: auto
    }
}

#tagLine h3 {
    font-size: 150px;
    margin: 0;
}

#tagLine {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


#tagLine figure {
    margin: 0;
    width: 100%;
}

#tagLine span {
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: #c1ff72;
    text-decoration-thickness: 12px;
    font-family: "Playfair Display SC", serif;
    font-style: italic;

}

#tagLine img {
    max-width: 200px;
    max-height: 150px;
    align-self: end;
    font-size: 9vw;
    margin: 0 0.5em;
    filter: grayscale(100%)
}



/* break point to be added at 1450px ^^ */

@media only screen and (max-width: 1550px) {
    #tagLine h3 {
        font-size: 9vw;
    }

    #tagLine img {
        max-height: 9vw;
    }

    section#tagLine {
        min-height: auto;
        margin-bottom: 20vh;
    }

}

#contact{
    margin-bottom: 0;
    min-height: 90vh;
}

#contact h3 {
    align-self: center;
    margin-left: 10em;
    margin-top: 1.5em;
    border-bottom: 2px solid var(--primary);
}

#contact img {
    max-width: 600px;
    width: 45vw;
    filter: grayscale(100%);
}

#contact figure {
    display: flex;
    width: 100%;
    margin: 0;
}

#contact figure>article {
    display: flex;
    flex-direction: column;
    min-width: 50%;
    margin-left: 6em;
    justify-content: center;
}

#contact figure>article * {
    margin-top: 1em;
}

#contact a {
    opacity: 100%;
}


#contact p.removeCaps{
   line-height: 2em;
}

.removeCaps {
    text-transform: none;
}

#contact article>div {
    margin: 0;
}

svg {
    fill: var(--primary);
    height: 3em;
    width: 3em;
    margin-right: 1em;
    transition-duration: 0.3s;

}


svg:hover{
    fill: var(--neutral);
    transition-duration: 0.3s;
}

@media only screen and (max-width: 1100px) {
    #contact h3 {
        margin: 0;
    }

    #contact {
        min-height: auto;
        margin-bottom: 5em;
    }

    #contact figure {
        flex-direction: column-reverse;
    }

    #contact figure>article {
        align-items: center;
        display: flex;
        margin-left: 0;
        min-width: auto;
    }

}

/* break point to be added at 1250px ^^ */


@keyframes fadeinall {
    0% {
        opacity: 1;
    }

    97% {
        opacity: 0;
    }

    98% {
        opacity: 0;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
        z-index: -1;
    }
}

#fadein {
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    background-color: #FFFFFF;
    z-index: 999;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation: fadeinall 1s normal both;
    animation: fadeinall 1s normal both;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}


.contentRight {
    position: relative;
    right: 100vh;
    /* Start off-screen */
    transition: right 1s ease-out, opacity 1s ease-out;
}

.contentRight.slide-to-right {
    right: 0;
}

.contentLeft {
    position: relative;
    left: 100vh;
    /* Start off-screen */
    transition: left 1s ease-out, opacity 1s ease-out;
}

.contentLeft.slide-to-left{
    left:0
}

#portfolioPage{
    align-items: center;
    
}

#portfolioPage h3{
    margin:0;
    margin-top: 5vh;
}

#portfolioPage p{text-transform: none;}

#portfolioPage article{
    max-width: 900px;
    min-width: 200px;
    width:90vw;
    display: flex;
    flex-direction: row;
    padding: 5vh 0;
    border-bottom: 1px dashed var(--neutral);
}

#portfolioPage article:nth-of-type(2n){
    flex-direction: row-reverse;

}

#portfolioPage article figure{
    max-width:66%;
    margin:0 1em;
}

#portfolioPage article figure img{
    width:100%;
}

#portfolioPage article div{
    display: flex;
    flex-direction: column;
}

#portfolioPage article div *{
    padding:0.5em 0.25em;
}

#portfolioPage .button{
    border: 0.25em solid var(--primary);
    padding: 0.25em 0.5em;
    max-width: fit-content;
    align-self: end;
    margin-right:2em;
    transition-duration: 0.3s;

}

#portfolioPage .button:hover{
    background-color: var(--primary);
    color:var(--neutral);
    opacity:100%;
    transition-duration: 0.3s;
}

#portfolioPage .toAbout{
    background-image: url("images/design.webP");
    background-size: cover;
    background-position: 0%;
    height: 25vh;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 5vh;
    margin-bottom: 5vh ;
    border:none;

}

#portfolioPage .toAbout+article { 
    border-top: 1px dashed var(--neutral);
}

#portfolioPage .toAbout *{
    
    margin:0;
    padding:0.25em;
    animation: pulse 3s infinite;
}
#portfolioPage .toAbout h4{
background-color: var(--primary);}

#portfolioPage .toAbout *:hover{
    animation-duration: 1s;
}

@keyframes pulse {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.7;
    }
    100% {
      transform: scale(1);
      opacity: 1;
    }}



#aboutPage article p{
    margin: 0;
    text-transform: none;
}

#aboutPage section {
    align-items: center;
    justify-self: center;
    max-width: 100vw;
    margin-top:5vh;
    min-height: 75vh;
}

#aboutPage section article{
    max-width: 900px;  
    min-width: 100px;
    margin-top: 5vh;
}

#aboutPage section h1{
     text-align: center;
     font-size: 10vh;
     width:fit-content;
     
}

#aboutPage p span, #servicesPage span{
    font-weight: 400;
    background: linear-gradient(var(--base) 50%,var(--primary) 50%)
}

@media only screen and (max-width: 925px) {
    #aboutPage section article,#portfolioPage article{
        flex-direction: column!important;
        max-width: 100%;
    }

    #aboutPage .wideImage img{
        width:100%;
        position:relative;
    }

    #aboutPage section h1{
        text-align: center;
        font-size: 7vh;
        
   }
    
}

#aboutPage .arrowRight{
    bottom:-0.5em;
}

#aboutPage .arrowRight::after{
    content: "services";
}

#servicesPage{
    align-items: center;
}

#servicesPage article{
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    min-width: 250px;
    width: 90vw;
    justify-content: space-between;
}

#servicesPage article figure{
    min-width: 250px;
    overflow: hidden;
    text-align: center;
    max-height:250px;
    margin:1em;
    padding: 1em 1em;
    position:relative;
    display: flex;
    flex: 1 0 auto;
    border:1px dashed var(--neutral);
    align-items: center;
    justify-content: center;
}

#servicesPage article figure input:hover{cursor: pointer;}


#servicesPage article figure div{
    max-width: 80%;
    width: 200px;
    text-align: start;
    opacity: linear-gradient(100%, 0%);
}

#servicesPage article figure div :nth-child(1n+3){
    display:none;
}

#servicesPage article figure div img{
    max-width: 100%;
    object-fit: contain;
}

#servicesPage article figure h2{
    font-size: 24px;
    transform: scaleX(1);
    max-width:auto;
    text-align: center;
}



#servicesPage article figure input{
    position:absolute;
    opacity: 0%;
    z-index: 10;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

#servicesPage article figure:has(input:checked){
    height:auto;
    max-height:200vh;
    width:90%;
    transition-duration: 0.3s;
    align-items: start;
    z-index: -10;

}

#servicesPage article figure:has(input:checked) div{
    width:100%;
}

#servicesPage article figure:has(input:checked) div *{
    display: block;
}

#servicesPage article figure:has(input:checked) div ul li{
    display:list-item!important;
}

#servicesPage ul, #servicesPage li {
    list-style-type: square;
    padding-left:1em;
    width: auto;
    opacity: 80%;
}

#servicesPage ul{
    list-style-type: none;
}

#servicesPage p{
    margin: 1em;
    padding-right:1em;
}

#servicesPage h4.price{
    text-align: end;
    width: auto;
    justify-self: end;
}

#servicesPage .arrowRight::after{
    content: "examples";
}

#servicesPage .arrowRight{
    bottom: -0.5em;
}

@media only screen and (max-width: 925px){
    #servicesPage article h1{
        font-size: 8vh;
       }

       #servicesPage article:has(>h1){
        justify-content: center;
       }
}