/********** Template CSS **********/
:root {
    --primary: #C90076;
    --secondary: #FFE3F1;
    --accent: #13B8A6;
    --light: #FFF7FB;
    --dark: #151221;
    --ink-muted: #625A70;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 6px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #A80063;
    border-color: #A80063;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-brand.bg-secondary {
    background-color: var(--secondary) !important;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}


/*** Header ***/
#home {
    margin-bottom: 6rem;
    background:
        linear-gradient(135deg, rgba(255, 247, 251, .96), rgba(255, 255, 255, .86)),
        url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

.eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-copy {
    max-width: 620px;
    color: var(--ink-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-portrait {
    position: relative;
    isolation: isolate;
}

.hero-portrait::before {
    position: absolute;
    content: "";
    width: 82%;
    height: 82%;
    right: 0;
    bottom: 4%;
    background: linear-gradient(135deg, var(--secondary), rgba(19, 184, 166, .18));
    border-radius: 8px;
    z-index: -1;
}

.hero-portrait img {
    display: block;
    max-height: 720px;
    margin-left: auto;
    object-fit: contain;
}

.hero-card {
    position: absolute;
    left: 4%;
    bottom: 8%;
    max-width: 230px;
    padding: 18px 20px;
    background: #FFFFFF;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}

.hero-card span {
    display: block;
    color: var(--ink-muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-card strong {
    display: block;
    color: var(--dark);
    font-size: 1.1rem;
}

.social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 196px;
}

.social-row .btn-square {
    flex: 0 0 38px;
    margin-right: 0 !important;
}

.upwork-mark {
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** About ***/
#about .years .display-1 {
    font-size: 7rem;
    line-height: 7rem;
}

#about .years h5 {
    letter-spacing: 8px;
    margin-right: -8px;
    color: var(--primary);
}

.metric-card {
    height: 100%;
    padding: 28px;
    background: #FFFFFF;
    border: 1px solid rgba(201, 0, 118, .12);
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(21, 18, 33, .06);
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 8px;
}

.metric-card p {
    color: var(--ink-muted);
    margin-bottom: 0;
}


/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
    background-color: var(--primary);
}

#skill .tab-content hr {
    width: 30px;
}


/*** Service ***/
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(../img/bg-icon.png) center center no-repeat;
    background-size: cover;
}

.service-item {
    border: 1px solid rgba(201, 0, 118, .1);
    box-shadow: 0 18px 40px rgba(21, 18, 33, .05);
}


/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(201, 0, 118, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}

.project-card {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(201, 0, 118, .1);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(21, 18, 33, .06);
    transition: transform .35s, box-shadow .35s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(21, 18, 33, .1);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-body {
    padding: 26px;
}

.project-body span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
}

.project-body p {
    color: var(--ink-muted);
    margin-bottom: 0;
}

.stack-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stack-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    color: var(--dark);
    background: #FFFFFF;
    border: 1px solid rgba(201, 0, 118, .15);
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(21, 18, 33, .05);
}

.contact-email a {
    color: var(--dark);
    word-break: break-word;
}

.contact-panel {
    padding: 36px;
    background: var(--light);
    border: 1px solid rgba(201, 0, 118, .12);
    border-radius: 8px;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-dark {
    background-color: var(--dark) !important;
}

.progress-bar.bg-primary,
.progress-bar.bg-danger,
.progress-bar.bg-warning,
.progress-bar.bg-dark,
.progress-bar.bg-info {
    background-color: var(--primary) !important;
}

.progress-bar.bg-warning,
.progress-bar.bg-info {
    background-color: var(--accent) !important;
}

@media (max-width: 991.98px) {
    .hero-portrait img {
        margin: 0 auto;
        max-height: 560px;
    }

    .hero-card {
        left: 0;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: 3.25rem;
    }

    .hero-card {
        position: static;
        margin-top: 18px;
        max-width: none;
    }

    #about .years .display-1 {
        font-size: 4.5rem;
        line-height: 4.5rem;
    }

    .contact-panel {
        padding: 26px;
    }
}
