/*!
Theme Name: Jamie Thornton CV
Theme URI: http://www.jamiethornton.co.uk/
Author: Jamie Thornton
Author URI: http://www.jamiethornton.co.uk/
Description: Custom WordPress theme
Version: 1.0.0
*/


/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1. Global
2. Layout
3. Alignment
4. Header
5. Footer
6. Main
7. Buttons
8. Miscellaneous
9. Media Queries
--------------------------------------------------------------*/


/*--------------------------------------------------------------
1. Global
--------------------------------------------------------------*/

* {
    margin: 0;
}

html,
body {
    background-color: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #242732;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.disable {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #3e43e9;
	text-decoration: none;
}

a:hover {

}

ul,
ol {
    margin: 0;
    padding: 0;
}

p {
    margin: 0 0 15px 0;
}

strong,
.bold-weight {
    font-weight: 600;
}

h1,
.heading-style-1,
h2,
.heading-style-2,
h3,
.heading-style-3,
h4,
.heading-style-4,
h5,
.heading-style-5,
h6,
.heading-style-6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1,
.heading-style-1 {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
}

h2,
.heading-style-2 {
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 800;
}

h3,
.heading-style-3 {
    font-size: clamp(24px, 4vw, 30px);
}

h4,
.heading-style-4 {
    font-size: clamp(19px, 4vw, 24px);
}

h5,
.heading-style-5 {
    font-size: clamp(17px, 4vw, 22px);
    font-weight: 400;
}

h6,
.heading-style-6 {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 400;
}

.invert,
.invert h1,
.invert h2,
.invert h3,
.invert h4,
.invert h5,
.invert h6,
.invert p,
.invert li,
.invert a,
.invert table {
    color: #fff;
}

.bg {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/*--------------------------------------------------------------
2. Layout
--------------------------------------------------------------*/

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row.less {
    margin-left: 0;
    margin-right: 0;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section-padding:nth-of-type(odd) {
    background-color: #f6f7fd;
}

.vh-100 {
    height: 100vh;
}

/*--------------------------------------------------------------
3. Alignment
--------------------------------------------------------------*/

.centered {
    text-align: center;
}

.right-align {
    text-align: right;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*--------------------------------------------------------------
4. Header
--------------------------------------------------------------*/

#leftSide {
    width: 20%;
    height: 100vh;
    background-color: #fff;
    position: fixed;
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-box-shadow: 0 1px 10px rgba(0, 0, 0, 0.10196078431372549);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.10196078431372549);
    overflow: auto;
}

#logoContainer {
    padding: 30px 15px;
}

#logoContainer h5 {
    font-weight: 600;
}

#logoContainer h6 {
    font-size: 14px;
}

#siteLogo img {
    display: block;
    border-radius: 50%;
    border: 3px solid #fff;
    margin: 0 auto 10px;
}

.cd-intro {
    margin: 4em auto;
}

@media only screen and (min-width: 768px) {
    .cd-intro {
        margin: 5em auto;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-intro {
        margin: 6em auto;
    }
}

.cd-headline {
    font-size: 3rem;
    line-height: 1.2;
}

@media only screen and (min-width: 768px) {
    .cd-headline {
        font-size: 4.4rem;
        font-weight: 300;
    }
}

@media only screen and (min-width: 1170px) {
    .cd-headline {
        font-size: 6rem;
    }
}

.cd-words-wrapper {
    display: inline-block;
    position: relative;
    text-align: left;
}

.cd-words-wrapper b {
    font-weight: normal;
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
}

.cd-words-wrapper b.is-visible {
    position: relative;
}

.no-js .cd-words-wrapper b {
    opacity: 0;
}

.no-js .cd-words-wrapper b.is-visible {
    opacity: 1;
}

.cd-headline.clip span {
    display: inline-block;
    padding: .2em 0;
}

.cd-headline.clip .cd-words-wrapper {
    overflow: hidden;
    vertical-align: top;
}

.cd-headline.clip .cd-words-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background-color: #212529;
}

.cd-headline.clip b {
    opacity: 0;
}
.cd-headline.clip b.is-visible {
    opacity: 1;
}

#mainMenu li {
    list-style-type: none;
    position: relative;
}

#mainMenu li a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #242732;
    line-height: 45px;
    display: block;
    position: relative;
    border-top: 1px solid #f5f5f5;
    border-left: 2px solid #FFFFFF;
    padding: 0 0 0 55px;
    transition: .3s;
}

#mainMenu li a:hover,
#mainMenu li.active a {
    color: #3e43e9;
    text-shadow: none;
    background-color: rgba(246, 247, 253, 0.65);
    border-left: 2px solid #3e43e9;
}

#mainMenu li a:before {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 300;
    font-size: 18px;
    position: absolute;
    left: 20px;
    top: 1px;
}

#mainMenu li.home a:before {
    content: "\f015";
}

#mainMenu li.about a:before {
    content: "\f007";
}

#mainMenu li.experience a:before {
    content: "\f0b1";
}

#mainMenu li.toolbelt a:before {
    content: "\f7d9";
}

#mainMenu li.portfolio a:before {
    content: "\f07c";
}

#mainMenu li.rates a:before {
    content: "\f625";
}

#mainMenu li.contact a:before {
    content: "\f095";
}

#triggerContainer {
    display: none;
    position: absolute;
    top: 20px;
    right: 15px;
    z-index: 90;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-delay: .2s;
}

#triggerContainer #trigger {
    width: 28px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 90;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

#triggerContainer span {
    display: block;
    position: absolute;
    height: 3px;
    width: 70%;
    background: #242732;
    opacity: 1;
    right: 0;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
}

#triggerContainer span:nth-child(1) {
    top: 0px;
    transform-origin: left center;
}

#triggerContainer span:nth-child(2) {
    width: 100%;
    top: 9px;
    transform-origin: left center;
}

#triggerContainer span:nth-child(3) {
    top: 18px;
    transform-origin: left center;
}

#triggerContainer #trigger.open span {
    background: #3e43e9;
}

#triggerContainer #trigger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 4px;
    left: 8px;
}

#triggerContainer #trigger.open span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

#triggerContainer #trigger.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    left: 8px;
}

/*--------------------------------------------------------------
5. Footer
--------------------------------------------------------------*/

#siteFooter {
    background: #ece9f1;
    padding: 30px 0;
}

#siteFooter p {
    font-size: 14px;
}

/*--------------------------------------------------------------
6. Main
--------------------------------------------------------------*/

#RightSide {
    width: 80%;
    display: inline-block;
    overflow: hidden;
    position: relative;
    float: right;
}

/* Home Section */
section#home {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

section#home:before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #360b7b 0%, #003a9c 100%);
    position: absolute;
    background-repeat: no-repeat;
    bottom: 0;
    right: 0;
    top: 0;
    opacity: 0.6;
    z-index: 1;
}

@media screen and (min-width: 991px) {
    section#home {
        background-attachment: fixed;
    }
}

.home-content {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.2);
}

.home-content p {
    font-size: 16px;
}

/* About Section */
section#about .about-content h6 {
    font-size: 17px;
    font-weight: 700;
}

section#about .about-list {
    margin-bottom: 25px;
}

section#about .about-list li {
    display: inline-block;
    width: 49%;
}

section#about .about-list li span {
    font-weight: 700;
    margin-right: 10px;
    float: left;
}

@media screen and (max-width: 1199px) {
    section#about .about-list li span {
        float: none;
    }
}

section#about .about-img {
    height: 100%;
    position: relative;
    overflow: hidden;
}

section#about .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Experience Section */
section#experience .experience-content h5 {
    font-size: 16px;
    text-transform: uppercase;
    color: #3e43e9;
    margin-bottom: 10px;
}

section#experience .ratings {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
}

section#experience .wrapper {
    position:relative;
    width:145px;
    height:145px;
    margin:0 auto;
    text-align: center;
    margin-bottom:12px;
}

section#experience .wrapper .circular-chart {
    display: block;
    margin: 0 auto;
}

section#experience .wrapper .circular-chart .circle-bg {
    fill: none;
    stroke: #e5e5e5;
    stroke-width: 3.8;
}

section#experience .wrapper .circular-chart .circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
}

section#experience .wrapper .circular-chart .circle.in-view {
    stroke: #3e43e9;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

section#experience .wrapper .circular-chart .percent {
    fill: grey;
    font-size: 0.5em;
    text-anchor: middle;
}

section#experience .title {
    font-weight: 600;
}

/* Tool Belt Section */
section#toolbelt h5 {
    font-size: 16px;
    text-transform: uppercase;
    color: #3e43e9;
    margin-bottom: 10px;
}

section#toolbelt .tool {
/*    padding: 15px 15px 0;*/
    margin: 25px 0 0;
}

section#toolbelt .tool .img-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 5px 35px rgba(148, 146, 248, 0.15);
    padding: 15px;
    transition: .3s;
}

section#toolbelt .tool .img-container:hover {
    transform: scale(1.125);
}

section#toolbelt .tool img {
    display: block;
    margin: auto;
    transition: .3s;
}

section#toolbelt .tool:hover img {
    filter: grayscale(100%);
}

section#toolbelt .tool p {
    font-size: 11px;
    color: #fff;
    background-color: #242732;
    display: inline-block;
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    margin: 10px 0 0;
    opacity: 0;
    transition: .3s;
}

section#toolbelt .tool:hover p {
    opacity: 1;
}

section#toolbelt .tool p i {
    color: #242732;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

/* Portfolio Section */
section#portfolio .works-item {
    display: block;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

section#portfolio h2 + p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

section#portfolio .works-item a {
    display: block;
}

section#portfolio .works-item .item-overlay {
    position: relative;
    overflow: hidden;
}

section#portfolio .works-item .item-overlay::before {
    content: '';
    width: 100%;
    height: 100%;
    background: #000;
    background: linear-gradient(0deg, rgba(0, 0, 0, .65) 0, rgba(0, 0, 0, 0) 75%);
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    transition: all .3s ease-in-out;
}

section#portfolio .works-item a:hover .item-overlay:before {
    opacity: 1;
}

section#portfolio .works-item img {
    width: 100%;
    display: block;
    -webkit-transform: scale(1);
    transform: scale(1);
    transition: all .3s ease-in-out;
}

section#portfolio .works-item a:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

section#portfolio .works-item .item-overlay .overlay-content {
    width: 100%;
    color: #fff;
    position: absolute;
    bottom: 0;
    padding: 3px 18px;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: all .3s ease-in-out;
}

section#portfolio .works-item a:hover .item-overlay .overlay-content {
    visibility: visible;
    opacity: 1;
}

section#portfolio .works-item .overlay-content .overlay-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 40px;
    float: left;
    margin-bottom: 0;
}

section#portfolio .works-item .overlay-content .overlay-icon {
    float: right;
}

/* Portfolio Section */
section#contact h2 + p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Rates Section */
section#rates .rate-box {
    background: #fff;
    box-shadow: 0px 5px 35px rgba(148, 146, 248, 0.15);
    border-radius: 3px;
    padding: 50px 40px;
}

section#rates .rate-box .rate-icon {
    margin-bottom: 20px;
}

section#rates .rate-box .rate-icon svg path {
    fill: #3e43e9;
}

section#rates .rate-box h4,
section#rates .rate-box .rate-price {
    font-size: 18px;
    font-weight: 700;
}

/* Contact Section */
section#contact i {
    font-size: 40px;
    color: #3e43e9;
    margin-bottom: 15px;
}

/*--------------------------------------------------------------
7. Buttons
--------------------------------------------------------------*/

.button {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-block;
    border-radius: 30px;
    padding: 10px 30px;
    -webkit-box-shadow: 2px 2px 10px -1px rgba(0, 0, 0, 0.14);
    box-shadow: 2px 2px 10px -1px rgba(0, 0, 0, 0.14);
    -webkit-text-shadow: none;
    text-shadow: none;
    position: relative;
    transition: .4s;
}

.button-scheme {
    color: #fff !important;
    background-color: #3e43e9;
    border: 2px solid #3e43e9;
}

.button-white {
    color: #222 !important;
    background-color: #fff;
    border: 2px solid #fff;
}

.button-outline {
    color: #3e43e9 !important;
    background-color: #fff;
    border: 2px solid #3e43e9;
}

.button-cv:hover {
    color: #3e43e9 !important;
    background-color: #fff;
    border: 2px solid #3e43e9;
    padding-right: 30px !important;
}

.button-cv svg path {
    transition: .4s;
}

.button-cv:hover svg path {
    fill: #3e43e9;
}

.button-cv:after {
    display: none;
}

.button:hover {
    padding-right: 40px;
}

.button:after {
    content: "\f061";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    right: 20px;
    top: 10px;
    opacity: 0;
    transition: .4s;
}

.button:hover:after {
    opacity: 1;
    right: 15px;
}

/*--------------------------------------------------------------
8. Miscellaneous
--------------------------------------------------------------*/

#chatBubble {
    width: 60px;
    height: 60px;
    display: flex;
    background-color: #3e43e9;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9;
    transition: box-shadow .3s;
}

#chatBubble svg {
    inline-size: 70%;
    fill: #fff;
    margin: auto;
}

#chatBubble:hover {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

body.error404 #RightSide {
    background: url('images/404.jpg') no-repeat center center / cover;
}

body.error404 #RightSide section {
    background-color: transparent;
}

.animate {
    opacity: 0;
}

.animate-up {
    transform: translateY(75px);
}

/*--------------------------------------------------------------
9. Media Queries
--------------------------------------------------------------*/

@media (min-width: 992px) {

    #siteHeader {
        width: 100%;
        position: relative;
        z-index: 9;
        height: 100vh;
    }

    .section-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 991px) {

    #leftSide {
        width: 100%;
        height: inherit;
        padding: 0 15px;
        z-index: 9;
    }

    #triggerContainer {
        display: block;
    }

    #RightSide {
        width: 100%;
    }

    #logoContainer {
        padding: 0;
        margin: 10px 0;
        overflow: hidden;
    }

    #siteLogo {
        height: 40px;
        width: 40px;
        margin: initial;
        float: left;
    }

    #captionArea {
        overflow: hidden;
        position: absolute;
        right: 0;
        left: 0;
    }

    #logoContainer h5 {
        font-size: 14px;
        margin-top: 5px;
        margin-bottom: 3px;
    }

    #logoContainer h6 {
        font-size: 10px;
        margin-bottom: 0;
    }

    #mainMenu {
        display: none;
    }

    section#experience .ratings {
        display: block;
    }

    section#experience .rating-wrapper {
        width: 32%;
        display: inline-block;
    }
}

@media (max-width: 767px) {

    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    section#experience .rating-wrapper {
        width: 49%;
    }
}