:root {
    --main-color: #F0354A;
    --secondary-color: #F0354A;
    --text-primary: #1a1a1a
}

body {
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-primary)
}

p {
    line-height: 1.75
}

a {
    color: var(--text-primary)
}

a:hover {
    color: var(--main-color) !important
}

h1,
h2 {
    font-weight: 800
}

h3,
h4,
h5,
h6 {
    font-weight: 700
}

.icon {
    display: inline-flex;
    align-self: center
}

.icon img,
.icon svg {
    height: 1em;
    fill: currentColor
}

.icon img,
.icon.baseline svg {
    top: .125em;
    position: relative
}

section {
    padding: 64px 0
}

#portfolio .btn-behance {
    margin-top: 64px
}

.section-heading {
    font-size: 1.6rem
}

@media (min-width:376px) {
    .section-heading {
        font-size: 1.8rem
    }
}

@media (min-width:768px) {
    section {
        padding: 96px 0
    }

    .section-heading {
        font-size: 2rem
    }

    #portfolio .btn-behance {
        margin-top: 96px
    }
}

::-moz-selection {
    background: var(--secondary-color);
    text-shadow: none
}

::selection {
    background: var(--secondary-color);
    text-shadow: none
}

img::selection {
    background: 0 0
}

img::-moz-selection {
    background: 0 0
}

.btn {
    background: 0 0;
    padding: 10px;
    border-width: 0;
    border-radius: 4px;
    background: var(--text-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.1px;
    font-family: Roboto, 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif
}

.btn:active,
.btn:focus,
.btn:hover {
    background-color: var(--main-color) !important;
    color: #fff !important
}

.social-btns a,
.social-btns i,
.social-btns li,
.social-btns ul {
    margin: 0;
    padding: 0;
    line-height: 1
}

.fa-align-fix {
    position: relative;
    top: .1rem
}

.social-btns li {
    margin-right: 32px;
    list-style: none
}

.social-btns li:last-child {
    margin-right: 0
}

.social-btns li a {
    -webkit-transition: .1s ease-in-out;
    -o-transition: .1s ease-in-out;
    transition: .1s ease-in-out
}

.social-btns li a i {
    -webkit-transition: .1s ease-in-out;
    -o-transition: .1s ease-in-out;
    transition: .1s ease-in-out
}

.social-btns li a:hover i {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1)
}

.social-btns li a.bh-btn:hover i {
    color: #1769ff
}

.social-btns li a.li-btn:hover i {
    color: #0077b5
}

.navbar {
    background-color: #fff
}

.navbar-nav {
    align-items: center
}

.navbar-nav svg {
    font-size: 20px;
    outline: 0
}

.navbar *,
.navbar :active,
.navbar :focus,
.navbar :hover {
    outline: 0 !important
}

.navbar-toggler {
    font-size: 1.1rem;
    right: 0;
    padding: 13px;
    text-transform: uppercase;
    color: var(--text-primary)
}

.navbar-logo {
    width: 42px;
    height: auto;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    transition: all .3s;
    line-height: 1;
    display: flex
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px !important;
    font-family: Raleway, 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: .75em 0;
    color: var(--text-primary)
}

@media (min-width:992px) {
    .navbar {
        padding-top: 25px;
        padding-bottom: 25px;
        -webkit-transition: padding-top .3s, padding-bottom .3s;
        -moz-transition: padding-top .3s, padding-bottom .3s;
        transition: padding-top .3s, padding-bottom .3s;
        border: none;
        background-color: transparent
    }

    .navbar-logo {
        width: 56px
    }

    .nav-link {
        padding: 0 .6em !important
    }

    .navbar-shrink {
        padding-top: 1px;
        padding-bottom: 1px;
        background-color: #fff
    }

    .navbar-shrink .navbar-brand {
        font-size: 1.25em;
        padding: 12px 0
    }

    .navbar-logo {
        width: 56px;
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        transition: all .3s
    }

    .navbar-shrink .navbar-logo {
        width: 48px;
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        transition: all .3s
    }
}

.masthead {
    background-image: linear-gradient(rgba(255, 255, 255, .86) 0, rgba(255, 255, 255, .79) 100%), url(../img/backgrounds/banffBW.jpg);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    margin-top: 70.91px;
    padding-top: 64px;
    padding-bottom: 64px
}

.masthead h1 {
    font-size: 1.6rem;
    line-height: 1.4
}

.masthead p {
    font-size: 1em;
    font-weight: 300
}

.masthead .fa-btn {
    height: 3rem;
    width: 3rem;
    font-size: 1.2rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: var(--text-primary);
    -webkit-transition: .1s ease-in-out;
    -o-transition: .1s ease-in-out;
    transition: .1s ease-in-out
}

.masthead .fa-btn:hover {
    text-decoration: none !important
}

.masthead .bh-btn:hover {
    background: #1769ff;
    color: #fff !important
}

.masthead .li-btn:hover {
    background: #0077b5;
    color: #fff !important
}

.masthead .mail-btn:hover {
    background: #d44638;
    color: #fff !important
}

.masthead .fa-btn:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1)
}

#portfolio .btn-behance {
    font-size: 1rem;
    padding: 12px 16px;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
    background: var(--text-primary)
}

.masthead .headshot {
    width: 60%;
    height: 60%;
}

@media (min-width:376px) {
    .masthead {
        background-attachment: fixed;
    }

    .masthead h1 {
        font-size: 1.8rem
    }

    .masthead p {
        font-size: 1.1em
    }

    #portfolio .btn-behance {
        font-size: 1.1rem;
        padding: 12px 18px
    }
}

@media (min-width:768px) {
    .masthead {
        padding-top: 200px;
        padding-bottom: 136px;
        margin-top: auto
    }

    .masthead h1 {
        font-size: 3rem;
        line-height: 1.3
    }

    .masthead p {
        font-size: 1.2em;
        font-weight: 300
    }
}

@media (min-width:992px) {
    .masthead {
        padding-top: 248px;
        padding-bottom: 248px;
        margin-top: auto
    }

    .masthead h1 {
        font-size: 3rem;
        line-height: 1.4
    }

    .masthead p {
        font-size: 1.2em
    }

    .masthead .fa-btn {
        height: 3.4rem;
        width: 3.4rem;
        font-size: 1.4rem
    }

    #portfolio .btn-behance {
        font-size: 1.3rem;
        padding: 14px 32px
    }

    .masthead .headshot {
        width: 80%;
        height: 80%;
    }
}

#portfolio *,
#portfolio :active,
#portfolio :focus,
#portfolio :hover {
    outline: 0 !important
}

#portfolio .card {
    transition: all .5s cubic-bezier(.2, .8, .2, 1)
}

#portfolio .card:hover {
    transform: scale(1.01)
}

#portfolio .badge {
    font-size: .9rem;
    font-weight: 500;
    background: #f0f0f0;
    padding: .4em .6em
}

#portfolio .badge-live {
    font-weight: 600;
    padding: .6em .6em;
    background: #4CAF50
}

#portfolio .badge-wip {
    font-weight: 600;
    padding: .6em .6em;
    background: #2196F3;
    color: white;
}

#portfolio .badge-date {
    font-size: rem;
    font-weight: 600;
    color: #fff;
    background: var(--main-color);
    padding: .6em .6em;
    display:none;
}

#portfolio .badge-project {
    font-size: rem;
    font-weight: 600;
    color: white;
    background: #FF5722;
    padding: .6em .6em
}

#portfolio .card-subtitle {
    font-weight: 400;
    font-size: 1em
}

.btn-behance svg {
    margin-left: .12em
}

.btn-behance:active,
.btn-behance:focus,
.btn-behance:hover {
    background-color: #1769ff !important
}

footer {
    padding-bottom: 42px
}

footer .social-btns {
    font-size: 1.45rem
}

/* --- Portfolio card equal-height layout --- */
#portfolio .card { display: flex; flex-direction: column; }
#portfolio .card-body { display: flex; flex-direction: column; flex: 1; }
#portfolio .tags { margin-top: auto; }
