﻿/* Variables */
:root {
    --color_link: #000000;
    --color_link_hover: #f47643;
    --color_bg_dark: #eb592d;
    --color_bg_light: #f47643;
    --color_card_bg: #ffffff;
    --color_border_right: #dddddd;
    --color_border_down: #dddddd;

    --color_text: #323232;
    --color_secondary_text: #646464;
    --color_text_reversed: #eaeaeb;

    --color_box_shadow: rgba(0, 0, 0, 0.1);

    --color_glass: rgba(255, 255, 255, .2);
    --color_glass_border_top: rgba(255, 255, 255, .54);
    --color_glass_border_middle: rgba(214, 211, 255, .56);
    --color_glass_border_bottom: rgba(21, 20, 46, .25);
}

/* Link Styles */
a:link {
    color: var(--color_link);
    text-decoration: none;
}

a:visited {
    color: var(--color_link);
}

a:active {
    color: var(--color_link);
}

a:hover {
    color: var(--color_link_hover);
}

a:hover, header > nav > div:hover {
    transition: color 0.33s;
}

/* Fonts */
@font-face {
    font-family: Poppins;
    src: url(/assets/fonts/Poppins/Poppins-Regular.ttf);
}



html {
    height: 100%;
    width: 100%;
    display: flex;
    
    color: var(--color_text);
}

body {
    height: 100%;
    width: 100%;
    display: flex;
    margin: 0;
    align-self: center;
    justify-content: center;
    font-family: 'Arial';
}

main {
    height: 100%;
    width: 100%;
    display: flex;
    margin: 8vh 6vw;
    align-self: center;
    align-items: center;
    max-width: 1754px;
    max-height: 674px;
}



.bg-bubbles {
    position: fixed;
    background: linear-gradient(to bottom right, var(--color_bg_dark) 0%, var(--color_bg_light) 100%);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

    .bg-bubbles li {
        position: absolute;
        list-style: none;
        display: block;
        width: 80px;
        height: 80px;
        background-color: rgba(255,255,255,.1);
        bottom: -320px;
        -webkit-animation: square 50s infinite;
        animation: square 50s infinite;
        -webkit-transition-timing-function: linear;
        transition-timing-function: linear;
        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        -khtml-border-radius: 4px;
    }
        .bg-bubbles li:nth-child(1) {
            left: 10%;
        }
        .bg-bubbles li:nth-child(2) {
            left: 20%;
            width: 160px;
            height: 160px;
            -webkit-animation-delay: 2s;
            animation-delay: 2s;
            -webkit-animation-duration: 34s;
            animation-duration: 34s;
        }
        .bg-bubbles li:nth-child(3) {
            left: 25%;
            -webkit-animation-delay: 4s;
            animation-delay: 4s;
        }
        .bg-bubbles li:nth-child(4) {
            left: 40%;
            width: 120px;
            height: 120px;
            -webkit-animation-duration: 44s;
            animation-duration: 44s;
        }
        .bg-bubbles li:nth-child(5) {
            left: 70%;
        }
        .bg-bubbles li:nth-child(6) {
            left: 80%;
            width: 240px;
            height: 240px;
            -webkit-animation-delay: 3s;
            animation-delay: 3s;
        }
        .bg-bubbles li:nth-child(7) {
            left: 32%;
            width: 320px;
            height: 320px;
            -webkit-animation-delay: 7s;
            animation-delay: 7s;
        }
        .bg-bubbles li:nth-child(8) {
            left: 55%;
            width: 40px;
            height: 40px;
            -webkit-animation-delay: 15s;
            animation-delay: 15s;
            -webkit-animation-duration: 80s;
            animation-duration: 80s;
        }
        .bg-bubbles li:nth-child(9) {
            left: 25%;
            width: 20px;
            height: 20px;
            -webkit-animation-delay: 2s;
            animation-delay: 2s;
            -webkit-animation-duration: 80s;
            animation-duration: 80s;
        }
        .bg-bubbles li:nth-child(10) {
            left: 90%;
            width: 320px;
            height: 320px;
            -webkit-animation-delay: 22s;
            animation-delay: 22s;
        }

@keyframes square {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }

    100% {
        -webkit-transform: translateY(-1500px) rotate(600deg);
        transform: translateY(-1500px) rotate(600deg);
    }
}

.card {
    background: var(--color_card_bg);
}

blockquote {
    color: var(--color_secondary_text);
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
}

    blockquote > svg:first-child {
        height: 24px;
        width: 28px;
        display: inline-block;
        margin: 0 30px 30px 0;
        fill: var(--color_secondary_text);
    }

    blockquote > svg:last-child {
        height: 24px;
        width: 28px;
        display: inline-block;
        margin: 30px 0 0 30px;
        transform: scale(-1);
        fill: var(--color_secondary_text);
    }

/* **************************************************
 * Header
 * **************************************************/
header {
}

    header > nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 72px;
        border-radius: 5px;
        height: 80%;
        margin: 0 8px 0 0;
    }

        header > nav:first-child {
            margin-bottom: 15px;
        }

        header > nav:first-child p {
            display: none;
        }

        header > nav > a,
        header > nav > div {
            height: 62px;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            display: flex;
            flex-direction: column;
        }

        header > nav > div {
            cursor: pointer;
        }
            header > nav > div:hover {
                color: var(--color_link_hover);
            }

        header > nav > a {
            border-image: linear-gradient(to left, var(--color_border_right), rgba(0, 0, 0, 0)) 1;
            border-bottom: 1px solid;
        }
        header > nav > :last-child {
            border-bottom: none;
        }

            header > nav > a > p,
            header > nav > div > p {
                margin: 0;
                font-size: x-small;
            }



/* **************************************************
 * CARD-MAIN
 * **************************************************/
.card-main {
    float: left;
    min-width: 480px;
    height: 100%;
    border-radius: 5px;
    box-shadow: 10px 10px 15px var(--color_box_shadow);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /*.card-main::after {
        background: linear-gradient(135deg,rgba(120,204,109,.4) 0%,rgba(120,204,109,.01) 100%);
        position: relative;
        left: -15px;
        top: -369px;
        width: 100%;
        height: 100%;
        opacity: 0.3;
        -webkit-border-radius: 4px;
        z-index: -1;
        display: flex;
        content: "";
    }*/


    .card-main > div:first-child {
        height: 100%;
    }


    .card-main > div div {
        background-image: url('/assets/profile.jpg');
        left: 0;
        top: 0;
        width: 100%;
        height: 60%;
        background-repeat: no-repeat;
        background-position: center center;
        border-radius: 4px 4px 0 0;
        background-position-y: -186px;
        z-index: -2;
        position: relative;
        overflow: hidden;
        background-size: cover
    }
        .card-main > div div::before {
            content: '';
            position: absolute;
            left: -25%;
            bottom: -65%;
            width: 100%;
            height: 70%;
            -moz-transform: rotate(8deg);
            background: var(--color_card_bg);
            z-index: -1;
        }
        .card-main > div div::after {
            content: '';
            position: absolute;
            left: 25%;
            bottom: -65%;
            width: 100%;
            height: 70%;
            -moz-transform: rotate(-8deg);
            background: var(--color_card_bg);
            z-index: -1;
        }


    .card-main > div:first-child h1 {
        display: flex;
        justify-content: center;
        font-size: 2.12rem;
        font-family: Poppins;
        margin: 0;
    }

    .card-main > div:first-child p {
        color: var(--color_link_hover);
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .card-main > div:first-child ul {
        display: flex;
        justify-content: center;
        list-style-type: none;
        padding: 0;
    }

    .card-main > div:first-child svg {
        width: 24px;
        height: 24px;
        stroke: var(--color_link);
        fill: var(--color_link);
        padding: 12px 6px 0 6px;
    }

        .card-main > div:first-child svg:hover {
            stroke: var(--color_link_hover);
            fill: var(--color_link_hover);
            transition: stroke 0.33s;
            transition: fill 0.33s;
        }



    .card-main > div:last-child {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        display: flex;
        flex-direction: row;
        z-index: 10;
        border-image: linear-gradient(to right, var(--color_border_right), rgba(0, 0, 0, 0)) 1;
        border-top: 1px solid;
    }

        .card-main > div:last-child > a {
            width: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-image: linear-gradient(to bottom, var(--color_border_down), rgba(0, 0, 0, 0)) 1;
            font-weight: bold;
        }

            .card-main > div:last-child > a:hover {
                color: var(--color_link_hover);
            }

            .card-main > div:last-child > a:first-child {
                border-right: 1px solid;
            }

            .card-main > div:last-child > a:last-child {
                border-left: 1px solid;
            }



/* **************************************************
 * CARD-CONTENT
 * **************************************************/
.card-content {
    height: 95%;
    border-radius: 0 5px 5px 0px;
    width: 100%;
    overflow-y: scroll;
}

    .card-content p {
        margin: 0;
        color: var(--color_secondary_text);
        line-height: 1.5;
    }

    .card-content img {
        width: 100%;
    }

    .card-content strong {
        background: var(--color_link_hover);
        color: var(--color_text_reversed);
        font-weight: 400;
        border-radius: 2px;
        padding: 0px 8px;
        font-size: 0.87rem;
        font-family: Poppins;
    }

    .card-content h1 {
        font-size: 1.618rem;
        line-height: 21px;
        font-weight: 600;
        margin: 0;
        padding: 30px 0 30px 30px;
    }
        .card-content h1::first-letter {
            color: var(--color_link_hover);
        }

        .card-content h1 span {
            position: relative;
        }
            .card-content h1 span::before {
                /*background: linear-gradient(135deg,rgba(120,204,109,.15) 0%,rgba(120,204,109,.01) 100%);*/
                background: linear-gradient(135deg,rgba(238, 92, 21, 0.37) 0%,rgba(120,204,109,.01) 100%);
                content: '';
                position: absolute;
                left: -10px;
                top: -5px;
                width: 30px;
                height: 30px;
                -webkit-border-radius: 30px;
                z-index: -1;
                box-sizing: border-box;
            }

    .card-content h2 {
        font-size: 1.309rem;
        line-height: 21px;
        font-weight: 600;
        margin: 0;
        padding: 15px 0 15px 30px;
        display: flex;
        align-items: center;
        border-image: linear-gradient(to right, var(--color_border_right), rgba(0, 0, 0, 0)) 1;
        border-bottom: 1px solid;
    }
        .card-content h2 span {
            font-size: 2rem;
            color: var(--color_link_hover);
        }

        .card-content h2 .material-icons {
            padding-right: 5px;
        }

    .card-content h3 {
        font-size: 1rem;
        margin: 0;
    }


    .card-content .row {
        display: flex;
        flex-wrap: wrap;
    }

    .card-content .column {
        border-image: linear-gradient(to bottom, var(--color_border_down), rgba(0, 0, 0, 0)) 1;
        /*border-bottom: 1px solid;*/
        border-right: 1px solid;
        box-sizing: border-box;
        width: 100%;
    }
        .card-content .column:last-child {
            border-right: none;
        }

    .card-content .column-half {
        width: 50%;
        min-width: 280px;
        flex-grow: 1;
    }

    .card-content .column-quarter {
        width: 25%;
        min-width: 230px;
        flex-grow: 1;
    }

    .card-content .column-sixth {
        width: 16.666%;
        min-width: 80px;
        flex-grow: 1;
    }

    .card-content .padded {
        padding: 30px;
    }

    .card-content .coloured {
        color: var(--color_text);
    }

    .card-content .centered {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-content .bb {
        border-image: linear-gradient(to right, var(--color_border_right), rgba(0, 0, 0, 0)) 1;
        border-bottom: 1px solid;
    }

    .card-content .icon_small img {
        width: 48px;
        height: 48px;
    }

    .card-content .icon_med img {
        width: 96px;
        height: 96px;
    }

    .card-content .info-list {
        text-align: right;
        list-style: none;
        font-family: Poppins;
        padding-left: 0;
        margin: 0;
    }

        .card-content .info-list strong {
            float: left;
        }

        

        .card-content .info-list li {
            padding: 6px 0 6px 0;
        }
            .card-content .info-list li::before {
                content: "";
                border-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color_border_right), rgba(0, 0, 0, 0)) 1;
                border-bottom: 1px solid;
                display: block;
                position: relative;
                top: -9px;
            }
            .card-content .info-list li:first-of-type {
                padding: 0 0 6px 0;
            }
                .card-content .info-list li:first-of-type::before {
                    display: none;
                }
            .card-content .info-list li:last-of-type {
                padding: 6px 0 0 0;
            }
            
    .card-content .right {
        
    }

    .card-content .padded-img img {
        margin-right: 10px;
    }



    .card-content .resume-item {
        
    }

        .card-content .resume-item strong {
            float: right;
            margin-left: 5px;
        }

        .card-content .resume-item p {
            line-height: 1;
        }

        .card-content .resume-item > div {
              
        }

        .card-content .resume-item > div {
            padding: 30px 30px 32px 30px;
        }
            .card-content .resume-item > div > div:last-child {
                padding-bottom: 0px;
            }

    .card-content img {
        overflow: hidden;
    }

    

    /* CARD PORTFOLIO */
    .card-content .card-portfolio {

    }

        .card-content .card-portfolio .row > div {
            width: calc(50% - 60px);
            min-width: 280px;
            flex-grow: 1;
            padding: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }


        .card-content .card-portfolio .row:first-child {
            justify-content: space-between;
        }

        .card-content .card-portfolio nav {
            padding: 30px 30px 30px 0;
        }

        .card-content .card-portfolio .hover-effect {
            overflow: hidden;
            position: relative;
            display: inline-block;
        }

            .card-content .card-portfolio .hover-effect img {
                transition: all 0.33s ease-in-out;
            }

            .card-content .card-portfolio .hover-effect:hover img {
                transform: scale(1.1);
            }

            .card-content .card-portfolio .hover-effect .img-top {
                display: inline-block;
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                z-index: 1;
                background: linear-gradient(135deg, rgba( 244, 118, 67,.5) 0%, rgba( 244, 118, 67,.01) 100%);
                transition: all 0.33s ease-in-out;
                opacity: 0;
            }

            .card-content .card-portfolio .hover-effect:hover .img-top {
                opacity: 1;
            }


/* ------------------------------------------- Typewriter ------------------------------------------- */
.typewriter > p {
    height: 18px;
    font-weight: 400;
}

.typewriter > span {
    display: none;
}

/* ---------------------------------------------- Form ---------------------------------------------- */
.form .form-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

    .form .form-header > p {
        top: 12px;
        position: absolute;
        left: 19px;
        margin: 0;
        font-weight: bold;
    }

    .form .form-header > button {
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        border-radius: 5px;
        transition: all 0.33s;
        padding: 0;
        line-height: 0;
        cursor: pointer;
        position: absolute;
        top: 5px;
        right: 10px;
        box-shadow: none;
        color: white;
    }

        .form .form-header > button:hover {
            background-color: var(--color_glass);
        }

.form {
    backdrop-filter: blur(2px);
    background-color: var(--color_glass);
    border-radius: 20px;
    box-shadow: inset 0 0 1px var(--color_glass_border_top), inset 0 1px 1px var(--color_glass_border_middle), 0 10px 10px -8px var(--color_glass_border_bottom);
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 75px 50px 50px 50px;
    color: white;

    width: 360px;
}

    .form input {
        height: 30px;
        margin-bottom: 25px;
    }

    .form input[type='checkbox'] {
        margin: 0;
        margin-bottom: 5px;
        margin-right: 5px;
    }

    .form textarea {
        resize: none;
        margin-bottom: 25px;
        padding: 15px;
        height: 94px;
    }

    .form label {
        padding-bottom: 5px;
    }

    .form button {
        height: 30px;
    }

    .form form {
        display: flex;
        flex-direction: column;
    }

        .form form input, .form form textarea {
            background-color: #0000002b;
            border: none;
            border-bottom: 2px #737373 solid;
            color: white;
        }

    .form .row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

        .form .column {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        

/* ------------------------------------------- Login Form ------------------------------------------- */
.login-form {

}

    .login-form .row {
        justify-content: flex-start;
        align-content: center;
        align-items: center;
    }


/* ------------------------------------------- Contact Form ------------------------------------------- */
.contact-form {
    
}

    .contact-form .row div:first-child {
        width: 65%;
    }

    .contact-form .row div:last-child {
        width: 30%;
    }


/* ------------------------------------------- Sidebar ------------------------------------------- */
.sidebar {
    background-color: var(--color_card_bg);
    color: #fff;
    padding: 0;
}

    .sidebar > div {
        padding: 15px;
    }

    .sidebar .sidebar_header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 0 15px 0;
    }

        .sidebar .sidebar_header img {
            width: 32px;
            height: 32px;
        }

        .sidebar .sidebar_header button {
            color: var(--color_text);
            width: 32px;
            height: 32px;
            background: none;
            border: none;
            border-radius: 5px;
            transition: all 0.33s;
            padding: 0;
            line-height: 0;
            cursor: pointer;
        }
            .sidebar .sidebar_header button:hover {
                background-color: var(--color_border_down);
            }

    .sidebar .sidebar_content button {
        background: none;
        border: none;
        color: var(--color_text);
        padding: 6px 8px 6px 8px;
        line-height: 0;
        display: flex;
        align-items: center;
        width: 100%;
        border-radius: 3px;
        cursor: pointer;
    }
        .sidebar .sidebar_content button:hover {
            background-color: var(--color_border_down);
        }

        .sidebar .sidebar_content button span {
            padding-right: 5px;
        }


/* **************************************************
 * DARK MODE COLOURS
 * **************************************************/
.dark-mode {
    --color_link: #eaeaeb;
    --color_link_hover: #f47643;
    --color_bg_dark: #17171b;
    --color_bg_light: #28282f;
    --color_card_bg: #31313a;
    --color_border_right: #474852;
    --color_border_down: #3d3d46;

    --color_text: #eaeaeb;
    --color_secondary_text: #a2a2a6;
    --color_text_reversed: #323232;



}