/********** Template CSS **********/
:root {
    --primary: #1F4E9C;
    --secondary: #2EC4B6;
    --light: #FAFAFB;
    --dark: #12141D;
}

.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;
}

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

.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);
}

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


/*** Header ***/
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    background: url(../img/bg-header.png) left top no-repeat;
}

@media (max-width: 575.98px) {
    #home h1.display-4 {
        font-size: 2rem;
    }

    #home .typed-text-output {
        font-size: 1.5rem;
    }
}

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


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

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}


/*** Hero photo ***/
.hero-photo {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(18px, 18px);
    border-radius: 50%;
    background: var(--secondary);
}

.hero-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #FFFFFF;
    box-shadow: 0 10px 30px rgba(31, 78, 156, .25);
}


/*** Cards, badges ***/
.cv-card {
    background: #FFFFFF;
    border: 1px solid rgba(18, 20, 29, .08);
    border-radius: .5rem;
    transition: .5s;
}

.cv-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(31, 78, 156, .12);
}

.stack-badge {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    background: rgba(31, 78, 156, .08);
    border-radius: 30px;
}

.cv-card ul {
    padding-left: 1.1rem;
}

.cv-card li {
    margin-bottom: .5rem;
}

.edu-item hr {
    width: 30px;
}

.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;
}


.project-item {
    display: flex;
    flex-direction: column;
}

.project-item .project-links {
    margin-top: auto;
}
