/* Unified hero header styles for fine-tuning */


/*@media (min-width: 376px) {
    
    .hero-greeting { font-size: 1.4rem; }
    .hero-name { font-size: 3rem; }
}
@media (min-width: 768px) {
    
    .hero-greeting { font-size: 1.6rem; }
    .hero-name { font-size: 3.5rem; }
}
@media (min-width: 992px) {
    
    .hero-greeting { font-size: 1.8rem; }
    .hero-name { font-size: 4rem; }
}*/
/* Hero greeting and name emphasis */

: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);
    background: #f5f6f8;
}

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: rgba(255,255,255,0.98);
        box-shadow: 0 6px 22px rgba(23, 41, 76, 0.08);
        border-bottom: 1px solid rgba(23, 41, 76, 0.08);
    }

    .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: linear-gradient(rgba(238, 241, 245, .8) 0, rgba(238, 241, 245, .9) 100%), url(../img/backgrounds/banffBW.jpg);
    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
}

.hero-greeting {
        display: block;
        font-size: 1.5rem;
        font-weight: 400;
        margin-bottom: 0;
        color: #444444;
}
.hero-name {
        display: block;
        font-size: 2.2rem;
        font-weight: 800;
        letter-spacing: 0.01em;
        margin-top: 0.3rem;
        margin-bottom: .5rem;
}

.hero-job-title{
text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
    font-weight: 600;
    color: var(--main-color);
}
.masthead p {
    font-size: 1rem;
    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;
    box-shadow: 0 12px 30px rgba(23, 41, 76, 0.06);
    background:#444444;
   
    -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;
    box-shadow: 0 12px 30px rgba(23, 41, 76, 0.1);
}

.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%;
    border: 1px solid rgba(23, 41, 76, 0.08);
   
    box-shadow: 0 12px 30px rgba(23, 41, 76, 0.06);
}

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

    .hero-name {
        
    }

    .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: 96px;
        margin-top: auto
    }
.hero-greeting {
       
        font-size: 2rem;
        font-weight: 400;
}
    .hero-name {
        font-size: 3rem;
        line-height: 1.3
    }

    .masthead p {
        font-size: 1.2em;
        font-weight: 300
    }
    .hero-job-title{
    letter-spacing: 0.03em;
    font-size: 1.2rem;
}
}

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

    .hero-name {
        font-size: 3.5rem;
        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);
    background: #fff;
    border: 1px solid rgba(23, 41, 76, 0.08);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(23, 41, 76, 0.06);
}

#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-title {
    padding-bottom: .75rem;
    
}
#portfolio .card-subtitle {
    color: var(--main-color);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
}

.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; justify-content: space-around; flex: 1; padding: 1.5rem; box-sizing: border-box; }
#portfolio .card-content { flex: 1; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: 1rem; }
#portfolio .card-tags { flex: 1; width: 100%; display: block; padding-top: 1rem; border-top: 1px solid rgba(23,41,76,0.08); box-sizing: border-box; }
#portfolio .tags { display:flex; flex-wrap:wrap; gap:1rem; max-width:100%; }

#portfolio .card-title { margin-bottom: .5rem; }
#portfolio .card-subtitle { margin-bottom: 0; }

#portfolio .tags .badge {
    display: inline-flex;
    margin: 0;
    background: rgba(23,41,76,0.04);
    color: rgba(26,26,26,0.70);
    border: 1px solid rgba(23,41,76,0.06);
    padding: .6rem .8rem;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
}

/* Card image corner rules: top corners match card radius, bottom corners square */
#portfolio .card-img-top {
    width: 100%;
    height: auto;
    display: block;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Ensure images don't overflow visual card edges */
#portfolio .card { overflow: hidden; }
