body {
    background-color: #434343;
    font-family: "Roboto", sans-serif;
    color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
}

/* Preloader */
#preloader {
    position: fixed;
    z-index: 9999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    background: #434343;
}

#preloader:before {
    content: url(../img/preloader.png);
    position: fixed;
    top: calc(50% - 60px);
    left: calc(50% - 60px);
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
    width: 120px;
    height: 120px;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    z-index: 996;
    bottom: 15px;
    right: 15px;
    visibility: hidden;
    opacity: 0;
    width: 40px;
    height: 40px;
    transition: all 0.4s;
    border-radius: 50%;
    background: #90ffca;
}

.back-to-top i {
    font-size: 28px;
    color: #434343;
}

.back-to-top:hover {
    background: #82e6b6;
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/* Header */
#header {
    position: fixed;
    z-index: 9997;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.5s;
    padding: 15px;
}

/* Navigation Menu */

/* Desktop Navigation */
.nav-menu {
    display: block;
    padding: 0;
}

.nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > ul > li {
    position: relative;
    white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
    align-items: center;
    display: flex;
    overflow: hidden;
    transition: 0.3s;
    margin-bottom: 8px;
    border-radius: 28px;
    width: 100%;
    height: 56px;
    padding: 10px 18px;
    background: #f2f3f5;
    font-size: 15px;
    color: #434343;
}

.nav-menu a i,
.nav-menu a:focus i {
    font-size: 20px;
}

.nav-menu a span,
.nav-menu a:focus span {
    padding: 0 5px 0 7px;
    color: #434343;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
    color: #434343;
    background: #90ffca;
}

.nav-menu a:hover,
.nav-menu li:hover > a {
    width: 100%;
    color: #434343;
}

.nav-menu a:hover span,
.nav-menu .active span,
.nav-menu .active:focus span,
.nav-menu li:hover > a span {
    color: #434343;
}

.nav-menu a:hover span,
.nav-menu li:hover > a span {
    display: block;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    position: fixed;
    z-index: 9998;
    top: 10px;
    right: 10px;
    transition: all 0.4s;
    border: 0;
    border-radius: 50%;
    outline: none !important;
    padding: 5px;
    background-color: #434343;
    font-size: 28px;
    line-height: 0;
    color: #ffffff;
    cursor: pointer;
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active #header {
    left: 0;
}

.mobile-nav-active .mobile-nav-toggle {
    background-color: #ff7878;
}

/* Hero Section */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("../img/hero-bg.jpg") top right no-repeat;
    background-size: cover;
}

#hero h1 {
    margin: 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 56px;
    color: #ffffff;
}

#hero p {
    margin: 15px 0 0 0;
    font-size: 26px;
    font-family: "Poppins", sans-serif;
    color: #ffe699;
}

#hero .social-links {
    margin-top: 30px;
}

#hero .social-links a {
    display: inline-block;
    transition: 0.3s;
    margin-right: 20px;
    font-size: 24px;
    line-height: 1;
    color: #f2f3f5;
}

#hero .social-links a:hover {
    color: #37d0fd;
}

#hero .social-links .hastings img {
    height: 24px;
    filter: brightness(0) invert(1);
    vertical-align: bottom;
}

#hero .social-links .hastings img:hover {
    filter: none;
}

/* Sections */
section {
    overflow: hidden;
    padding: 60px 0;
}

.section-title {
    padding-bottom: 30px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff;
}

.section-title h2::before {
    content: "";
    position: absolute;
    bottom: 1px;
    left: calc(50% - 60px);
    display: block;
    width: 120px;
    height: 1px;
    background: #ffffff;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: calc(50% - 20px);
    display: block;
    width: 40px;
    height: 3px;
    background: #90ffca;
}

.section-title p {
    margin-bottom: 0;
    color: #f2f3f5;
}

/* About Section */
.about .section-title p a {
    color: #f2f3f5;
}

.about .section-title p a:hover {
    color: #37d0fd;
}

/* Skills Section */
.skills-content {
    border-radius: 10px;
    background: #ffffff;
}

/* CV Section */
.cv .cv-title {
    margin: 20px 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.cv .cv-item {
    position: relative;
    margin-top: -2px;
    border-left: 2px solid #ffe699;
    padding-left: 20px;
}

.cv .cv-item h4 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffe699;
}

.cv .cv-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -9px;
    border: 2px solid #ffe699;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    background: #ffffff;
}

.cv .cv-item .btn {
    border: none;
    background: #37d0fd !important;
}

.cv .cv-item .btn:hover {
    background: #32bbe4 !important;
}

/* Portfolio Section */
.portfolio .portfolio-item {
    margin-bottom: 30px;
}

.portfolio .portfolio-title {
    margin: 20px 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.portfolio .portfolio-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: 0.3s;
}

.portfolio .portfolio-wrap img {
    border-radius: 5px;
}

.portfolio .portfolio-wrap::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 30px;
    bottom: 54px;
    left: 30px;
    right: 30px;
    opacity: 0;
    transition: all ease-in-out 0.3s;
    border-radius: 5px;
    background: rgba(69, 69, 69, 0.7);
}

.portfolio .portfolio-wrap .portfolio-info {
    position: absolute;
    z-index: 3;
    top: 0;
    bottom: 24px;
    left: 0;
    right: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    opacity: 0;
    transition: all ease-in-out 0.3s;
    text-align: center;
}

.portfolio .portfolio-wrap .portfolio-info::before {
    content: "";
    position: absolute;
    z-index: 9994;
    top: 35px;
    left: 35px;
    display: block;
    transition: all 0.5s ease 0s;
    border-top: 3px solid #f2f3f5;
    border-left: 3px solid #f2f3f5;
    width: 48px;
    height: 48px;
}

.portfolio .portfolio-wrap .portfolio-info::after {
    content: "";
    position: absolute;
    z-index: 9994;
    bottom: 35px;
    right: 35px;
    display: block;
    transition: all 0.5s ease 0s;
    border-bottom: 3px solid #f2f3f5;
    border-right: 3px solid #f2f3f5;
    width: 48px;
    height: 48px;
}

.portfolio .portfolio-wrap a {
    display: inline-block;
    transition: 0.3s;
    margin: 0 2px;
    font-size: 24px;
    color: #f2f2f2;
}

.portfolio .portfolio-wrap:hover::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 24px;
    opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info {
    opacity: 1;
}

.portfolio .portfolio-wrap:hover .portfolio-info::before {
    top: 15px;
    left: 15px;
}

.portfolio .portfolio-wrap:hover .portfolio-info::after {
    bottom: 15px;
    right: 15px;
}

.portfolio .stack-list {
    flex-wrap: wrap;
    justify-content: center;
    display: flex;
    padding: 0;
    list-style: none;
}

.portfolio .stack-list li {
    margin: 5px;
    border-radius: 5px;
    padding: 5px 10px;
    background: #f2f3f5;
    font-weight: 700;
    color: #434343;
}

/* Contact */
.contact .contact-form {
    border-radius: 5px;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
}

.contact .contact-form .form-group {
    padding-bottom: 8px;
}

.contact .form-control:focus {
    border-color: #5b5efd;
}

.contact .contact-form .error-message {
    display: none;
    padding: 15px;
    background: #ff7878;
    font-weight: 600;
    text-align: left;
    color: #ffffff;
}

.contact .contact-form .error-message br + br {
    margin-top: 25px;
}

.contact .contact-form .sent-message {
    display: none;
    padding: 15px;
    background: #90ffca;
    font-weight: 600;
    text-align: center;
    color: #434343;
}

.contact .contact-form .loading {
    display: none;
    padding: 15px;
    background: #fff;
    text-align: center;
    color: #434343;
}

.contact .contact-form .loading:before {
    content: "";
    display: inline-block;
    -webkit-animation: animate-loading 1s linear infinite;
    animation: animate-loading 1s linear infinite;
    margin: 0 10px -6px 0;
    border: 3px solid #5b5efd;
    border-top-color: #eeeeee;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.contact .contact-form input,
.contact .contact-form textarea {
    box-shadow: none;
    border-radius: 4px;
    font-size: 14px;
}

.contact .contact-form input {
    height: 44px;
}

.contact .contact-form textarea {
    padding: 10px 12px;
}

.contact .contact-form .submit-contact-form {
    transition: 0.4s;
    border: 0;
    border-radius: 50px;
    padding: 10px 35px;
    background: #5b5efd;
    color: #fff;
}

.contact .contact-form .submit-contact-form:hover {
    background: #5255e4;
}

@-webkit-keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
#footer {
    padding: 30px 0;
    background: #434343;
    font-size: 14px;
    text-align: center;
    color: #ffffff;
}

#footer .social-links {
    margin: 0 0 20px 0;
}

#footer .social-links a {
    display: inline-block;
    transition: 0.3s;
    margin-right: 4px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 8px 0;
    background: #ffffff;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    color: #434343;
}

#footer .social-links a:hover {
    background: #37d0fd;
    text-decoration: none;
    color: #ffffff;
}

#footer .copyright {
    margin: 0 0 5px 0;
}

/* Media Queries */

/* Disable aos animation delay on mobile devices */
@media screen and (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }
}

@media (max-width: 991px) {
    #header {
        left: -300px;
        border-right: 1px solid #f2f3f5;
        width: 300px;
        background: #434343;
    }
}

@media (min-width: 991px) {
    #main,
    #footer {
        margin-left: 100px;
    }
}

@media (max-width: 992px) {
    #hero {
        text-align: center;
    }

    #hero h1 {
        font-size: 32px;
        line-height: 36px;
    }

    #hero p {
        margin-top: 10px;
        font-size: 20px;
        line-height: 24px;
    }
}

@media (min-width: 992px) {
    .nav-menu a,
    .nav-menu a:focus {
        width: 56px;
    }

    .nav-menu a span,
    .nav-menu a:focus span {
        display: none;
        color: #ffffff;
    }

    #hero {
        padding-left: 160px;
    }
}
