*, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


:root {
    --main-color:#1E1E1E;
    --secondary-color: #ffffff;
    --accent-color: #1D68A7;
    --bgsecond-color: #EFEFEF;

    --max-width: 1120px;
    --max-text: 640px;
    --line-height: 1.75em;

    --font-light: lighter;
    --font-regular: normal;
    --font-bold: bold;

    --mb-block: 40px;
}


/* //////////// */
/* Main styling */
/* //////////// */
body {
    color:var(--secondary-color);
    background-color: var(--main-color);
    font-family: 'sofia-pro', sans-serif;
    font-weight: var(--font-regular);
}

@font-face {
    font-family: sofia-pro;
    font-weight: lighter;
    src: url("../assets/fonts/sofia-pro/Sofia\ Pro\ Light\ Az.otf") format("opentype");
}

@font-face {
    font-family: sofia-pro;
    font-weight: normal;
    src: url("../assets/fonts/sofia-pro/Sofia\ Pro\ Regular\ Az.otf") format("opentype");
}

@font-face {
    font-family: sofia-pro;
    font-weight: bold;
    src: url("../assets/fonts/sofia-pro/Sofia\ Pro\ bold\ Az.otf") format("opentype");
}

@font-face {
    font-family: 'montserrat';
    src: URL('../assets/fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  }

h1, h2 {
    text-align: center;
    font-family: 'montserrat';
    font-weight: var(--font-bold);
}

h2 {
    font-size: 64px;
    margin-bottom: 24px;
}

h4 {
    font-size: 1.5em;
    margin-bottom: .5em;
    font-weight: var(--font-bold);
}

i {
    color: var(--accent-color);
    font-size: 1.5em;
    margin-bottom: .5em;
}

button > i {
    font-size: 1em;
    margin-bottom: 0;
    color: var(--secondary-color)
}

p {
    line-height: 140%;
}

button {
    font-family: 'sofia-pro';
    cursor: pointer;
}

.dot-color {
    color: var(--accent-color);
}

a {
    text-decoration: none;
}

.animate {
    opacity: 0;
    transition: opacity .5s ease-in;   
}

.fade {
    opacity: 1;
}

/* //////////// */
/* Header       */
/* //////////// */

header {
    font-size: 16px;
    font-weight: var(--font-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 5;
    background-color: rgba(30, 30, 30, 1);
    transition: background-color 0.3s ease, filter 0.3s ease;
}

header.blurred {
    background-color: rgba(30, 30, 30, .5);
    backdrop-filter: blur(24px);
}

header button {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--bg-color);
    font-size: 1.5em;
    text-transform: uppercase;
    font-weight: 700;
    width: 40px;
    height: 40px;
    place-content: center;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.3);
    transition: .4s;
}

.openNav {
    transform: scale(1);
}

header button:hover {
    transform: scale(.95);
}

header .header-inner {
    position: relative;
    max-width: var(--max-width);
    left: 50%;
    transform: translateX(-50%);
    padding: 1.5em 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
}

header .logo p {
    padding-left: 1em;
    color: var(--secondary-color);
    align-self: center;
}

header img {
    max-height: 40px;
}


header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    padding-left: 1em;
}

header nav ul li a {
    color: var(--secondary-color);
    padding: .5em 1em;
    transition: .3s;
}

header nav .text-link i {
    display: none;
}

header nav .text-link:hover a {
    color: var(--accent-color);
}

header nav ul li:last-of-type a {
    border: 1px solid var(--accent-color);
    border-radius: 24px;
}

header nav ul li:last-of-type a:hover {
    border: 1px solid var(--accent-color);
    color: var(--bgsecond-color);
    background-color: var(--accent-color);
}

/* //////////// */
/* Main         */
/* //////////// */

main > section {
    margin-bottom: var(--mb-block) !important;
    padding: 0 1em;
    max-width: var(--max-width);
    margin: 0 auto;
}

main > section:last-of-type {
    margin-bottom: 0 !important;
}

.headabout {
    background-color: var(--secondary-color);
    max-width: var(--max-width);
    border-radius: 40px;
    margin: 88px auto 0 auto;
    color: var(--main-color);
    position: relative;
    height: calc(100dvh - 88px - 40px);
    padding: 1em 7.5vw 1em 7.5vw;
}

.headabout h1 {
    font-size: clamp(16px, 8vw, 100px);
    padding: 40px 0;
}

.headabout h1 .gradient-title {
    background: linear-gradient(90deg, rgba(17,64,132,0.6) 0%, rgba(0,0,0,0.6) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.headabout p {
    width: 30%;
    margin-bottom: 1em;
}

.headabout img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
}

.project {
    max-width: var(--max-width);
    padding: 40px 0 40px 0;
}

.project p {
    max-width: var(--max-text);
    text-align: center;
    margin: 0 auto 40px auto;
}

.project .project-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4vw;
}

.project .project-wrapper a {
    height: 500px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    color: var(--bgsecond-color);
    transition: .4s;
}

.project .project-wrapper a:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.5);
}


.project .project-wrapper img {
    object-fit: cover;
    position: absolute;
    filter: drop-shadow(-1px 6px 3px rgba(50, 50, 0, 0.5));
    width: 100%;
    padding: 0 1em;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
}

.ommetje-project img,
.brain-project img,
.browsertech-project img {
    width: 60% !important;
    top: 10% !important;
}


.tp-project {
    background-color: #006FB9;
}

.tweakers-project {
    background-color: #CF1745;
}

.ommetje-project {
    background-color: #743285;
}

.swov-project {
    background-color: #B8CB33; 
}

.swov-project h3, .swov-project p {
    color: #272A66;
}

.brain-project {
    background-color: #384B61;
}

.browsertech-project {
    background-color: #282A37;
}

.project .project-text {
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom:0;
    width: 75%;
}

.project .project-text p {
    font-size: .75em;
}

.project .project-text h3 {
    margin-bottom: 8px;
}

.aboutme {
    background-color: var(--bgsecond-color);
    max-width: 100%;
    color: var(--main-color);
}

.aboutme .section-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 1em 80px 1em;
}

.aboutme h3 {
    font-size: 64px;
    margin-bottom: 24px;
}

.aboutme h3:nth-of-type(2) {
    text-align: center;
    margin-bottom: 40px;
}

.aboutme .about-info {
    display: grid;
    grid-template-columns: 4fr 3fr;
    gap: 10vw
}

.aboutme .about-text p {
    margin-bottom: 1.5em;
}


.aboutme .about-img {
    display: flex;
    align-items: center;
    margin-bottom: 5em;
}

.aboutme .about-img img {
    width: 100%;
    border-radius: 16px 64px 16px 64px;
}

.aboutme .button-group {
    display: flex;
    gap: 1em;
}

.main-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: 1px solid var(--accent-color);
    border-radius: 24px;
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    height: 40px;
    transition: .4s;
}

.main-button i {
    transition: .4s;
}

.main-button:hover {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    background-color: var(--bgsecond-color);
}

.main-button:hover i {
    color: var(--accent-color);
}

.aboutme .button-group a:first-of-type button {
    aspect-ratio: 1/1;
}

.aboutme .divider {
    height: 1px;
    background-color: var(--accent-color);
    width: 75vw;
    max-width: 920px;
    margin: 40px auto;
}

.aboutme .aboutusp {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5vw;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1em;
}

footer img {
    height: 40px;
}

footer p {
    opacity: .75;
}

footer .footer-icons {
    display: flex;
    gap: 1em;
}

footer .footer-icons a i {
    color: var(--secondary-color);
    width: 40px;
    aspect-ratio: 1/1;
    background-color: var(--accent-color);
    border-radius: 100%;
    display: grid;
    place-content: center;
    margin-bottom: 0;
    transition: .4s;
}

footer .footer-icons a i:hover {
    color: var(--accent-color);
    background-color: var(--bgsecond-color);
}

/* /////////////// */
/* Projects Detail */
/* /////////////// */

.project-page {
    background-color: #ffffff;
    color: var(--main-color);
}

.project-detail {
    max-width: var(--max-width);
    padding: 10em 1em 5em 1em;
    margin: 0em auto 10dvh auto;
}

.detail-header > ul {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
}

.detail-header > ul li {
    list-style: none;
    padding: .5em;
    border-radius: .5em;
}

.detail-header {
    max-width: var(--max-text);
    margin: 0 auto;
}

.detail-header > .maintitle {
    margin-bottom: .5em;
}

.project-detail span {
    font-weight: 700;
}

.project-detail img {
    width: 100%;
    padding: 2.5em 0;
}

.project-detail article { 
    max-width: var(--max-text);
    margin: 2.5em auto;
    margin-bottom: 0;
}

.project-detail article h3 { 
    margin-bottom: .5em;
}

.project-detail article ul { 
    margin: 1em 0 0 0;
}

.project-detail article li { 
    line-height: var(--line-height);
}

.project-detail .icons { 
    margin-top: 1em;
    justify-content: flex-start;
    gap: 2.5em;
    display: flex;
}

.project-detail .icons a { 
    text-decoration: none;
    color: var(--main-color);
    font-weight: 700;
    transition: .5s;
}

.project-detail .icons a:hover { 
    transform: scale(1.1);
}

.project-detail .image-wrapper {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.project-detail .image-wrapper img {
    padding-bottom: .5em;
}


/* //////////// */
/* Responsive   */
/* //////////// */
@media only screen and (max-width: 1024px) {

    .headabout {
        padding: 0 5vw 1em 5vw;
    }

    .headabout img {
        width: 80%;
    }
}

@media only screen and (max-width: 768px) {
    
    header button {
        display: grid;
    }

    header nav {
        position: fixed;
        right: 0;
        top: 5.5em;
        background-color: var(--bg-color);
        transform: scale(0);
        transform-origin: top right;
        transition: .2s;
        z-index: 1;
        padding: 1em 3em 1em 1em;
        border-radius: 1em;
        margin: 0 1em 0 0;
        background-color: var(--bgsecond-color);
        box-shadow:0 6px 16px 0 rgba(0, 0, 0, 0.3);
    }

    header nav:hover {
        transform: scale(1.05);
    }
    
    header nav ul li:hover {
        transform: scale(1.02);
    }

    header nav ul li:hover {
        transform: scale(1.02);
    }
    
    header nav ul {
        list-style: none;
        color: var(--bg-color);
        display: block;
    }

    .text-link a{
        display: flex;
        align-items: center;
    }

    .text-link i {
        padding-top:5px;
    }
    
    header nav ul li:last-of-type {
        margin-bottom: 0em;
    }

    header nav ul li:last-of-type a {
        border: none;
    }


    header nav ul li:last-of-type a:hover {
        background-color: var(--bgsecond-color);
        color: var(--accent-color);
        border: none;
    }

    header nav ul li a {
        color: var(--main-color)
    }
    
    header nav ul li i {
        margin-right: 1em;
        width: 24px;
    }

    header nav .text-link i {
        display: inline-block;
    }

    .headabout img {
        width: 50%;
    }

    .headabout h1 {
        padding: 24px 0;
    }

    .headabout p {
        width: 40%;
    }

    .aboutme .about-info {
        grid-template-columns: 1fr;
        gap: 0;
    }


    .aboutme .about-text {
        margin-bottom: 32px;
    }

    .aboutme .about-img {
        margin-bottom: 0;
    }

    .aboutme .aboutusp {
        grid-template-columns: 1fr;
    }

    .project .project-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 480px) {
    .headabout img {
        width: 70%;
    }

    .headabout p {
        width: 100%;
        text-align: center;
    }

    .project .project-wrapper {
        grid-template-columns: 1fr;
    }
}

/* /////////////// */
/* Data labels     */
/* /////////////// */
[data-type="HTML"] {
    background-color: #e34f26;
    color: var(--secondary-color);
}

[data-type="CSS"] {
    background-color: #264de4;
    color: var(--secondary-color);
}

[data-type="JavaScript"] {
    background-color: #f7df1e;
    color: var(--main-text);
}

[data-type="Design"] {
    background-color: #c8d5ff;
    color: var(--main-text);
}

[data-type="UX"] {
    background-color: #002749;
    color: var(--secondary-color);
}