/*general*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    text-decoration: none;
    scroll-behavior: smooth;
    list-style: none;
    color: rgb(0, 42, 219);
}

body {
    background-color: white;
    transition: background-color 1s ease-in-out;
}

h1{
    font-size: 120px;
    font-weight: 800;
}

h2{
    font-size: 40px;
    font-weight: 600;
}

section{
    width: 100%;
    position: relative;
}

footer {
    display: flex;
    width: 100%;
    position: relative;
    padding: 2rem;
    margin-top: 150px;
    font-size: 0.8rem;
    transition: color 1s ease-in-out;
}

/*header*/

header {
    position: fixed;
    height: 80px;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;

    background-color: white;
    color: rgb(0, 42, 219);
    border-bottom: 1px solid rgb(0, 42, 219);

    z-index: 1000;

    transition:
        background-color 1s ease-in-out,
        color 1s ease-in-out,
        border-color 1s ease-in-out;
}

.header-logo-shape {
    fill: rgb(0, 42, 219);
    transition: fill 1s ease-in-out;
}

header a{
    color: rgb(0, 42, 219);
    transition: color 1s ease-in-out;
}

.naam span {
    color: rgb(0, 42, 219);
    transition: color 1s ease-in-out;
}

.naam {
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    text-wrap: nowrap;
}

#logo_square {
    height: 80px;
    flex-shrink: 0;
    padding-left: 1rem;
}

.nav-links{
    display: flex;
    gap: 8rem;
    margin-left: auto;
    margin-right: 2rem;
}

li a{
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
}

#menu-icon{
    font-size: 2rem;
    display: none;
    transition: color 1s ease-in-out;
}

.nav-links li {
    position: relative;
}

/* dots */

.nav-links li::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -0.5rem;

    width: 6.5px;
    height: 6.5px;

    border-radius: 50%;
    background: rgb(0, 42, 219);

    transform: translateX(-50%) scale(0);
    transition: 
    transform 0.3s ease-in-out,
    background-color 1s ease-in-out;
}

.nav-links li:hover::after {
    transform: translateX(-50%) scale(1);
}

.nav-links li.active::after {
    transform: translateX(-50%) scale(1);
}

/*home*/

.home {
    min-height: 100vh;
    width: 100%;
    scroll-margin-top: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

#logo {
    width: min(80vw, 600px);
    height: auto;
    display: block;
}

/*work*/

.work{
    min-height: 100vh;
    padding-left: 2rem;
    padding-right: 2rem;
    scroll-margin-top: 80px;
}

.work_outerdiv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.work_outerdiv figure {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.work_outerdiv figure > a:first-child {
    width: 60%;
    flex-shrink: 0;
}

.work_outerdiv figure > a:first-child img {
    width: 100%;
    height: auto;
    display: block;
}

.work_outerdiv figure > a:last-child {
    flex: 1;
}

.work_outerdiv figcaption {
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    font-weight: 500;
}

.work_outerdiv figcaption span:first-child {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgb(0, 42, 219);
}

.work_outerdiv figcaption span:last-child {
    padding-top: 0.25rem;
}

.work_outerdiv h2{
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(0, 42, 219);
}

.work_left {
    display: flex;
    flex-direction: column;
}

.firstimage {
    padding-top: 2rem;
}

.work_inprogress {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

.work_inprogress figure:first-child {
    padding-top: 2rem;
}

/*contact*/

.contact {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 150px;
}

.contact_outerdiv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact h2 {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(0, 42, 219);
    transition:
        background-color 1s ease-in-out,
        color 1s ease-in-out,
        border-color 1s ease-in-out;
}

.contact_right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

.instagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgb(0, 42, 219);
    transition:
        color 1s ease-in-out,
        border-color 1s ease-in-out;
}

.instagram span{
    transition: color 1s ease-in-out;
}

.email {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgb(0, 42, 219);
    transition:
        color 1s ease-in-out,
        border-color 1s ease-in-out;
}

.email span {
    transition: color 1s ease-in-out;
}

.tag {
    text-align: right;
}

/*about html*/

.about{
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 80px;
    color: rgb(0, 42, 219);
}

.about_outerdiv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about_left {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    height: calc(100vh - 80px);
}

.about_left h2{
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(0, 42, 219);
}

.about_left p {
    padding-bottom: 1rem;
}

.table-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    border-bottom: 1px solid rgb(0, 42, 219);
}

.table {
    width: 100%;
    margin-top: auto;
    padding-bottom: 2rem;
}
.status {
    text-align: right;
}

.about_right{
    height: calc(100vh - 80px);
    box-sizing: border-box;

    padding-top: 2rem;
    padding-bottom: 2rem;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profielfoto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*connectingthedots html*/

.dots {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 80px;
    color: rgb(0, 42, 219);
}

.dots_outerdiv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.dots_left {
    position: sticky;
    top: 80px;

    width: 100%;
    height: calc(100vh - 80px);

    display: flex;
    flex-direction: column;

    padding-top: 1rem;
}

.product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(0, 42, 219);
    transition:
        color 1s ease-in-out,
        border-color 1s ease-in-out;
}

.product-title h2 {
    text-align: right;
    transition: color 1s ease-in-out;
}

.arrow-shape {
    fill: rgb(0, 42, 219);
    transition: fill 1s ease-in-out;
    justify-content: center;
}

#arrow-back {
    height: 40px;
    flex-shrink: 0;
}

.dots_left span{
    color: rgb(0, 42, 219);
    transition: color 1s ease-in-out;
}

.one {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid rgb(0, 42, 219);
    transition: border-color 1s ease-in-out;
}

.property {
    text-align: right;
}

.summary{
    padding-top: 9rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.summary_rots{
    padding-top: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}


.source{
    position: absolute;
    bottom: 0.4rem;
    left: 0;
    padding: 0;
    transition: color 1s ease-in-out;
}

.dots_right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.dots_right img {
    width: 100%;
    display: block;
    padding-bottom: 2rem;
    color: rgb(0, 42, 219);
    transition: color 1s ease-in-out;
}

.dots_right span{
    width: 100%;
    display: block;
    padding-bottom: 2rem;
    color: rgb(0, 42, 219);
    transition: color 1s ease-out;
}

/*buttons*/

.circle-buttons {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
}

.circle-buttons_rots {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-bottom: 2rem;
}

.circle-button {
    width: 110px;
    height: 110px;
    display: block;
}

.circle-button svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.circle-button circle {
    stroke: rgb(0, 42, 219);
    stroke-width: 1.5px;
    transition: 
        fill 0.3s ease-in-out,
        stroke 0.3s ease-in-out;
}

.circle-button text {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: fill 0.3s ease-in-out;
}

.process-button circle {
    fill: rgb(0, 42, 219);
    stroke: white;
}

.process-button text {
    fill: white;
}

.process-button:hover circle {
    fill: white;
    stroke: rgb(0, 42, 219);
}

.process-button:hover text {
    fill: rgb(0, 42, 219);
}

.result-button {
    pointer-events: none;
}

.result-button circle {
    fill: white;
    stroke: rgb(0, 42, 219);
}

.result-button text {
    fill: rgb(0, 42, 219);
}

.process-images {
    display: none;
}

.process-images figure {
    position: relative;
    margin: 0;
}

/* process mode */

body.process-mode {
    background-color: rgb(0, 42, 219);
}

/*process mode header*/

body.process-mode header {
    background-color: rgb(0, 42, 219);
    color: white;
    border-color: white;
}

body.process-mode .nav-links li::after {
    background-color: white;
}

body.process-mode .header a {
    color: white;
}

body.process-mode .naam span {
    color: white;
}
body.process-mode #menu-icon{
    color: white;
}

body.process-mode .header-logo-shape {
    fill: white;
}

/*process mode dots section*/

body.process-mode .result-images {
    display: none;
}

body.process-mode .process-images {
    display: block;
}

body.process-mode .product-title h2,
body.process-mode .dots_left span,
body.process-mode .dots_right span,
body.process-mode .dots_right,
body.process-mode .source {
    color: white;
}

body.process-mode .arrow-shape {
    fill: white;
}

body.process-mode .product-title {
    border-color: white;
}

body.process-mode .one {
    border-color: white;
}

/*process mode buttons*/

body.process-mode .process-button {
    pointer-events: none;
}

body.process-mode .result-button {
    pointer-events: auto;
}

body.process-mode .result-button:hover circle {
    fill: rgb(0, 42, 219);
    stroke: white;
}

body.process-mode .result-button:hover text {
    fill: white;
}

/* process mode contact */

body.process-mode .contact h2,
body.process-mode .instagram,
body.process-mode .instagram span,
body.process-mode .email,
body.process-mode .email span {
    color: white;
    border-color: white;

}

/* process mode footer*/
body.process-mode footer {
    color: white;
}

/* lightbox*/

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image-container {
    width: 75vw;
    height: 85vh;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}



.lightbox-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    max-width: 100%;
    max-height: 100%;
}

#lightbox-image {
    max-width: 100%;
    max-height: calc(85vh - 3rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

#lightbox-caption {
    color: white;
    text-align: left;
}


.lightbox-arrow,
.lightbox-close {
    position: absolute;
    border: none;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/*
   The arrow SVG is 56.12 × 80.18.

   Height determines the size of the arrows.
*/

.lightbox-arrow {
    width: 32px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 3rem;
}

.lightbox-next {
    right: 3rem;
}

.lightbox-arrow svg {
    width: 100%;
    height: 100%;

    fill: white;

    display: block;
}

/*
   The X SVG is square (80.18 × 80.18).

   Its height is intentionally identical to the arrow height.
*/

.lightbox-close {
    width: 46px;
    height: 46px;

    top: 2rem;
    left: 2rem;
}

.lightbox-close svg {
    width: 100%;
    height: 100%;

    fill: white;

    display: block;
}



.result-images img,
.process-images img {
    cursor: pointer;
}

/*prevents page scrolling*/

body.lightbox-open {
    overflow: hidden;
}

/* responsiveness */

@media (max-width: 1200px) {
    .summary {
        padding-top: 5rem;
        font-size: 1.1rem;
    }

    .summary_rots {
        padding-top: 2rem;
        font-size: 1.1rem;
    }

    .work_outerdiv figure > a:first-child {
        width: 50%;
    }
}    

@media (max-width: 768px) {
    /*general*/

    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 32px;
    }

    footer {
        margin-top: 100px;
        padding: 1.5rem;
    }


    /*header*/

    header {
        height: 70px;
    }

    #logo_square {
        height: 70px;
        padding-left: 1rem;
    }

    .naam {
        display: none;
    }


    /*home*/

    .home {
        min-height: 100svh;
        scroll-margin-top: 70px;
    }

    #logo {
        width: min(80vw, 500px);
    }

    .work {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        scroll-margin-top: 70px;
    }

    .work_outerdiv {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .work_left,
    .work_inprogress {
        grid-column: auto;
    }

    .work_inprogress {
        margin-top: 4rem;
    }

    .work_outerdiv figure {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .work_outerdiv figure > a:first-child {
        width: 50%;
    }

    .contact {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 100px;
    }

    .contact_outerdiv {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact_right {
        display: none;
    }


    /* about*/

    .about {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 70px;
    }

    .about_outerdiv {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .about_left {
        height: auto;
        padding-top: 1rem;
    }

    .about_right {
        height: auto;
        padding-top: 2rem;
        padding-bottom: 0;
    }

    .profielfoto {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: cover;
    }

    .table {
        margin-top: 3rem;
        padding-bottom: 0;
    }

    /*projects*/

    .dots {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        margin-top: 70px;
    }

    .dots_outerdiv {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .dots_left {
        position: relative;
        top: auto;

        height: auto;
        min-height: calc(100svh - 70px);

        padding-top: 1rem;
    }

    .dots_right {
        grid-column: auto;
        padding-top: 2rem;
    }

    .product-title h2 {
        font-size: 32px;
    }

    .summary {
        padding-top: 5rem;
        font-size: 1.1rem;
    }

    .summary_rots {
        padding-top: 2rem;
        font-size: 1.1rem;
    }

    .circle-buttons {
        margin-top: 12rem;
        padding-bottom: 2rem;
    }

    .circle-buttons_rots {
        margin-top: 2rem;
        padding-bottom: 2rem;
    }

    .circle-button {
        width: 100px;
        height: 100px;
    }

    .circle-button text {
        font-size: 1.8rem;
    }



    .lightbox-image-container {
        width: 85vw;
        height: 80vh;
    }

    #lightbox-image {
        max-width: 85vw;
        max-height: calc(80vh - 3rem);
    }

    .lightbox-prev {
        left: 1.5rem;
    }

    .lightbox-next {
        right: 1.5rem;
    }

    .lightbox-close {
        top: 1.5rem;
        left: 1.5rem;
    }
}


@media (max-width: 600px) {

    /*general*/

    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 26px;
    }

    footer {
        margin-top: 75px;
        padding: 1rem;
        font-size: 0.7rem;
    }


    /*header*/

    header {
        height: 60px;
    }

    #logo_square {
        height: 60px;
        padding-left: 0.75rem;
    }

    #menu-icon {
        display: block;
        margin-left: auto;
        margin-right: 1rem;
        cursor: pointer;
        font-size: 1.7rem;
    }


    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        background-color: white; 
    }

    /* JavaScript should add .active when menu is opened */

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;

        padding: 1rem 1.5rem;

        font-size: 1rem;

        border-bottom: 1px solid rgb(0, 42, 219);
    }

    /* don't show the desktop dots underneath
       the mobile menu items */

    .nav-links li::after {
        display: none;
    }


    /*home*/

    .home {
        min-height: 100svh;
        scroll-margin-top: 60px;
    }

    #logo {
        width: 78vw;
        max-width: 420px;
    }


    .work {
        padding-left: 1rem;
        padding-right: 1rem;
        scroll-margin-top: 60px;
    }

    .work_outerdiv {
        grid-template-columns: 1fr;
    }

    .work_outerdiv h2 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .work_outerdiv figure {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .work_outerdiv figure > a:first-child {
        width: 50%;
    }

    .work_outerdiv figcaption {
        font-size: 1rem;
        line-height: 1.35;
    }

    .work_outerdiv figcaption span:first-child {
        padding-bottom: 0.2rem;
    }

    .work_outerdiv figcaption span:last-child {
        padding-top: 0.2rem;
    }

    .firstimage {
        padding-top: 1.5rem;
    }

    .work_inprogress {
        margin-top: 3rem;
    }

    .work_inprogress figure:first-child {
        padding-top: 1.5rem;
    }

    .contact {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 75px;
    }

    .contact h2 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .contact_outerdiv {
        grid-template-columns: 1fr;
    }

    .contact_right {
        display: none;
    }

    .instagram,
    .email {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }

    .tag {
        text-align: right;
        font-size: 0.8rem;
    }


    /*about*/

    .about {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 60px;
    }

    .about_outerdiv {
        grid-template-columns: 1fr;
    }

    .about_left {
        height: auto;
        padding-top: 0.75rem;
    }

    .about_left h2 {
        padding-bottom: 0.75rem;
    }

    .about_left p {
        padding-bottom: 1rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .table {
        margin-top: 2rem;
        padding-bottom: 0;
    }

    .table-title {
        font-size: 1rem;
    }

    .table .one {
        font-size: 0.85rem;
        gap: 1rem;
    }

    .about_right {
        height: auto;
        padding-top: 2rem;
    }

    .profielfoto {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: cover;
    }


    /*projects*/

    .dots {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-top: 60px;
    }

    .dots_outerdiv {
        grid-template-columns: 1fr;
    }

    .dots_left {
        position: relative;
        top: auto;

        height: auto;
        min-height: auto;


        padding-top: 0.75rem;
    }

    .product-title {
        padding-bottom: 0.75rem;
    }

    .product-title h2 {
        font-size: 25px;
        line-height: 1.2;
        text-align: right;
    }

    #arrow-back {
        height: 30px;
        width: auto;
    }

    .one {
        font-size: 0.85rem;
        padding: 0.15rem 0;
    }

    .summary {
        padding-top: 5rem;
        padding-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .summary_rots {
        padding-top: 4rem;
        padding-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.5;
    }

    .dots_right {
        grid-column: auto;
        padding-top: 2rem;
    }

    .dots_right img {
        padding-bottom: 1rem;
    }

    .dots_right span {
        padding-bottom: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .source {
    bottom: 0;
    font-size: 0.75rem;
    left: 0;
    padding: 0;
    transition: color 1s ease-in-out;
    }

    .circle-buttons {
        margin-top: 4rem;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .circle-buttons_rots {
        margin-top: 4rem;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .circle-button {
        width: 85px;
        height: 85px;
    }

    .circle-button text {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }


    body.process-mode .nav-links {
        background-color: rgb(0, 42, 219);
        border-color: white;
    }

    body.process-mode .nav-links li a {
        color: white;
        border-color: white;
    }



    .lightbox-image-container {
        width: 65vw;
        height: 75vh;
    }

    #lightbox-image {
        max-width: 65vw;
        max-height: calc(75vh - 2rem);
    }

    .lightbox-arrow {
        width: 22px;
        height: 32px;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }

    .lightbox-close {
        width: 32px;
        height: 32px;

        top: 1rem;
        left: 1rem;
    }

    #lightbox-caption {
        font-size: 0.8rem;
    }
}

@media (hover: none) and (pointer: coarse) {

    .process-button:hover circle {
        fill: rgb(0, 42, 219);
        stroke: white;
    }

    .process-button:hover text {
        fill: white;
    }

    body.process-mode .result-button:hover circle {
        fill: white;
        stroke: rgb(0, 42, 219);
    }

    body.process-mode .result-button:hover text {
        fill: rgb(0, 42, 219);
    }

}

