/* =======================================================
    * Template Name: Nancy Khaled Portfolio
    * Template URL: https://nancy-khaled.netlify.app/
    * Author: Nancy Khaled
    ======================================================== */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --fristColor: #F5CBCB;
    --secondColor: #748dae;
}

body {
    font-family: "Open Sans", sans-serif;
    color: #444444;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Jost", sans-serif;
}

.clearfix {
    content: "";
    display: block;
    clear: both;
    overflow: hidden;
}

.section-padding {
    padding: 60px 0;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
    background: var(--secondColor);
}

#preloader:before {
    content: "";
    position: fixed;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    border: 6px solid var(--secondColor);
    border-top-color: var(--fristColor);
    border-bottom-color: var(--fristColor);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    -webkit-animation: animate-preloader 1s linear infinite;
    animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 996;
    background: var(--secondColor);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    transition: all 0.4s;
    border: thin solid var(--fristColor);
}

.back-to-top i {
    font-size: 24px;
    color: var(--fristColor);
    line-height: 0;
}

.back-to-top:hover {
    background: var(--secondColor);
    color: var(--fristColor);
}

.back-to-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# header1
--------------------------------------------------------------*/
#header1 {
    display: none;
    background-color: var(--fristColor);
}

@media (min-width: 992px) {
    #header1 {
        display: block;
    }

    #header1 .contact-info,
    #header1 .social-info {
        list-style: none;
        display: flex;
        padding: 0;
        margin: 0;
    }

    #header1 .contact-info li a {
        text-decoration: none;
        color: #fff;
    }

    #header1 .social-info li a {
        text-decoration: none;
        color: var(--secondColor);
        background: #fff;
        width: 35px;
        height: 35px;
        line-height: 38px;
        display: block;
        text-align: center;
        border-radius: 100%;
        font-size: 16px;
        padding: 0;
        margin: 15px 6px 12px 6px;
        transition: all 0.3s ease-in-out 0s;
        -webkit-transition: all 0.3s ease-in-out 0s;
        -moz-transition: all 0.3s ease-in-out 0s;
        -ms-transition: all 0.3s ease-in-out 0s;
        -o-transition: all 0.3s ease-in-out 0s;
    }

    #header1 .social-info li a:hover {
        color: #fff;
        background: var(--secondColor);
    }


    #header1 .contact-info li {
        padding-right: 25px;
    }
}

/*--------------------------------------------------------------
# header2
--------------------------------------------------------------*/
#header {
    background-color: var(--secondColor);
    position: sticky;
    top: -1px;
    z-index: 2;
    border-bottom: 2px solid var(--fristColor)
}

#header .logo a {
    color: #fff;
    text-decoration: none;
    font-style: italic;
}

#header .logo a span {
    color: var(--fristColor);
}

#header .logo a h6 {
    font-size: 10px;
    font-style: normal;
    color: #e7e7e7;
}

#header nav ul {
    list-style: none;
    display: flex;
    margin-bottom: 0;
    text-transform: capitalize;
}

#header nav ul li a {
    color: var(--secondColor);
}

#header nav ul li a i {
    color: var(--fristColor);
}

#header nav ul li a.active {
    color: var(--fristColor);
    font-size: 20px;
    transition: all ease-in-out 0.4s;
    -webkit-transition: all ease-in-out 0.4s;
    -moz-transition: all ease-in-out 0.4s;
    -ms-transition: all ease-in-out 0.4s;
    -o-transition: all ease-in-out 0.4s;
}

#header nav ul li a:hover {
    color: var(--fristColor);
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
    color: var(--fristColor);
    font-size: 28px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
    color: var(--fristColor);
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: block !important;
    }

    .navbar ul {
        display: none !important;
    }
}

@media (min-width: 992px) {
    #header nav ul li a {
        color: #fff;
    }
}

.navbar-mobile {
    position: fixed;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgb(34 37 51 / 89%);
    transition: 0.3s;
    z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
}

.navbar-mobile ul {
    display: block !important;
    position: absolute;
    top: 55px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    padding: 10px 0;
    border-radius: 10px;
    background-color: #fff;
    overflow-y: auto;
    transition: 0.3s;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
    padding: 10px 20px;
    font-size: 15px;
    color: var(--secondColor);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
    color: var(--fristColor);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
    width: 100%;
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../img/hero-area.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

#hero h1 {
    color: #fff;
    text-transform: capitalize;
    font-weight: bold;
    font-size: 55px;
}

#hero p {
    color: #fff;
    padding: 20px 0;
    font-size: 40px;
}

#hero .social-info {
    list-style: none;
}

#hero .social-info li a {
    color: var(--secondColor);
    background: #fff;
    width: 35px;
    height: 35px;
    line-height: 38px;
    display: block;
    text-align: center;
    border-radius: 100%;
    font-size: 16px;
    margin: 15px 6px 12px 6px;
    transition: all 0.3s ease-in-out 0s;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
}

#hero .social-info li a:hover {
    color: #fff;
    background: var(--secondColor);
}

@media (min-width: 768px) {
    #hero p {
        width: 70%;
        margin: 0 auto 15px auto;
    }
}

/*--------------------------------------------------------------
# about section
--------------------------------------------------------------*/
.profile-wrapper {
    padding: 55px 0 0 0;
}

.about .img-thumb img {
    border: 8px solid #fff;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
    display: block;
}

.about .profile-wrapper h2 {
    color: var(--secondColor);
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.about-profile {
    position: relative;
    margin: 20px 0 20px 0;
}

.about-profile .admin-profile {
    list-style: none;
    padding: 0;
}

.about-profile .pro-title {
    font-weight: bold;
    color: var(--secondColor);
    position: relative;
    width: 120px;
    display: inline-block;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.about-profile .pro-title i {
    margin-right: 8px;
}

.about-profile .pro-title:after {
    position: absolute;
    content: ':';
    color: var(--secondColor);
    font-size: 14px;
    left: 105px;
}

.about .btn-content {
    text-align: center;
}

.about .btn-content .btn {
    font-family: "Jost", sans-serif;
    transition: all ease-in-out 0.5s;
    background: var(--secondColor);
    color: #fff;
    -webkit-transition: all ease-in-out 0.5s;
    -moz-transition: all ease-in-out 0.5s;
    -ms-transition: all ease-in-out 0.5s;
    -o-transition: all ease-in-out 0.5s;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 20px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

.about .btn-content .btn:hover {
    background: var(--fristColor);
    color: var(--secondColor);
}

@media (min-width: 992px) {
    .about .btn-content {
        text-align: left;
    }
}

/*--------------------------------------------------------------
# skills section
--------------------------------------------------------------*/
.skills {
    background: url(../img/bg-1.jpg);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

.skills:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.skills .counter {
    padding: 30px 0;
}

.skills .counter .icon {
    margin-bottom: 30px;
}

.skills .counter .icon i {
    font-size: 48px;
    color: var(--fristColor);
}

.skills .counter p {
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 30px 0;
}

/*--------------------------------------------------------------
# Resume section
--------------------------------------------------------------*/
.resume .section-title h2 {
    font-weight: bold;
    color: var(--secondColor);
    padding-bottom: 20px;
    text-transform: capitalize;
    text-align: center;
}

.timeline {
    position: relative;
}

.timeline .timelin-title {
    font-size: 20px;
    text-transform: uppercase;
    margin-left: 25px;
}

.timeline li {
    padding: 0 20px 20px 30px;
    list-style: none;
    border-left: 2px solid #f1f1f1;
}

.timeline li .content-text {
    background: #f2f2f2;
    padding: 20px;
}

.timeline li .line-title {
    font-size: 16px;
    margin: 0;
}

.timeline li span {
    font-size: 12px;
    padding: 0 0 10px 0;
    display: block;
}

.timeline li .line-text {
    color: #888;
    font-size: 14px;
}

.timeline li:first-child:before {
    border: 0;
    background: none;
    position: relative;
}

.timeline li:last-child {
    padding: 0 20px 0px 30px;
}

.timeline li:before {
    content: "";
    border: solid 2px;
    width: 8px;
    height: 8px;
    border-radius: 50px;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    font-size: 8px;
    margin-left: -35px;
    font-weight: 400;
    background: #fff;
    display: block;
    position: absolute;
    margin-top: 18px;
    border-color: var(--secondColor) !important;
}

.timeline li:first-child i {
    font-size: 20px;
    float: left;
    margin-left: -30px;
    line-height: 50px;
    border-radius: 30px;
    margin: -12px -55px;
    background: var(--secondColor);
    color: #fff;
    width: 50px;
    height: 50px;
    text-align: center;
}

.timeline .des li,  .timeline .pro li {
    padding: 0 10px 5px 10px;
    list-style: circle;
    font-size: 14px;
}

.timeline .des li:before, .timeline .pro li:before {
    content: none;
}

/*--------------------------------------------------------------
# Services section
--------------------------------------------------------------*/
.services {
    background-color: var(--secondColor);
    text-align: center;
}

.services .section-title h2 {
    font-weight: bold;
    color: var(--fristColor);
    padding-bottom: 20px;
    text-transform: capitalize;
}

.services article {
    margin-top: 60px;
}

.services article .content {
    margin: 0 auto;
    background-color: #f5cbcbbf;
    padding: 60px 10px 20px 10px;
    border-radius: 8px;
    position: relative;
    width: 75%;
    transition: all ease-in-out 0.25s;
    -webkit-transition: all ease-in-out 0.25s;
    -moz-transition: all ease-in-out 0.25s;
    -ms-transition: all ease-in-out 0.25s;
    -o-transition: all ease-in-out 0.25s;
}

.services article .content:hover {
    box-shadow: 0px 0px 20px #f5cbcbbf;
}

.services article .content h5 {
    color: var(--secondColor);
    text-transform: capitalize;
    padding: 15px 0 5px 0;
}

.services article .content p {
    color: #fff;
    font-size: 14px;
    padding-bottom: 15px;
    height: 55px;
}

.services article .content .img {
    padding: 20px;
    background-color: #FFF;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    color: var(--secondColor);
    font-size: 40px;
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .section-title h2 {
    font-weight: bold;
    color: var(--secondColor);
    padding-bottom: 20px;
    text-transform: capitalize;
    text-align: center;
}

.portfolio #portfolio-flters {
    list-style: none;
    margin-bottom: 20px;
}

.portfolio #portfolio-flters li {
    cursor: pointer;
    text-transform: capitalize;
    display: inline-block;
    margin: 10px 5px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: var(--secondColor);
    transition: all 0.3s;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
    background: var(--secondColor);
    color: #fff;
}

.portfolio .portfolio-item {
    margin-bottom: 30px;
    cursor: pointer;
}

.portfolio .portfolio-item .portfolio-img {
    overflow: hidden;
    box-shadow: 0px 0px 15px var(--secondColor);
}

.portfolio .portfolio-item .portfolio-img img {
    transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    -ms-transition: all 0.6s;
    -o-transition: all 0.6s;
}

.portfolio .portfolio-item .portfolio-info {
    opacity: 0;
    position: absolute;
    left: 15px;
    bottom: 0;
    z-index: 3;
    right: 15px;
    transition: all 0.3s;
    background: #748daeb0;
    padding: 15px;
    text-align: center;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
    padding: 0 20px;
    font-size: 20px;
    top: calc(50% - 18px);
    color: #fff;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.portfolio .portfolio-item .portfolio-info .details-link {
    right: 10px;
}

.portfolio .portfolio-item:hover .portfolio-img img {
    transform: scale(1.15);
}

.portfolio .portfolio-item:hover .portfolio-info {
    opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
    padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
    width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
    margin-top: 20px;
    position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #fff;
    opacity: 1;
    border: 1px solid var(--secondColor);
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
    background-color: var(--secondColor);
}

.portfolio-details .portfolio-description {
    padding-top: 30px;
}

/*--------------------------------------------------------------
# footer
--------------------------------------------------------------*/
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../img/background.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 40px 0;
}

footer .footer-top h4 {
    text-transform: capitalize;
    color: #fff;
    padding-bottom: 15px;
}

footer .footer-top .footer-contact .logo a {
    color: #fff;
    text-decoration: none;
    font-style: italic;
    text-transform: capitalize;
}

footer .footer-top .footer-contact .logo a span {
    color: var(--fristColor);
}

footer .footer-top .footer-contact .logo a h6 {
    font-size: 10px;
    font-style: normal;
    color: #e7e7e7;
}

footer .footer-top .footer-contact .social-info li a {
    text-decoration: none;
    color: var(--secondColor);
    background: #fff;
    width: 35px;
    height: 35px;
    line-height: 38px;
    display: block;
    text-align: center;
    border-radius: 100%;
    font-size: 16px;
    padding: 0;
    margin: 15px 6px 12px 6px;
    transition: all 0.3s ease-in-out 0s;
    -webkit-transition: all 0.3s ease-in-out 0s;
    -moz-transition: all 0.3s ease-in-out 0s;
    -ms-transition: all 0.3s ease-in-out 0s;
    -o-transition: all 0.3s ease-in-out 0s;
}

footer .footer-top .footer-contact .social-info li a:hover {
    color: #fff;
    background: var(--secondColor);
}

footer .footer-top .footer-contact {
    margin-top: 40px;
}

footer .footer-top .footer-links ul,
footer .footer-top .footer-contact ul {
    list-style: none;
    color: #fff;
    padding-left: 0;
}

footer .footer-top .footer-links ul li,
footer .footer-top .footer-contact ul li {
    padding-bottom: 8px;
}

footer .footer-top .footer-links ul li a {
    color: #fff;
    text-decoration: none;
    padding-left: 15px;
    text-transform: capitalize;
}


footer .footer-top .footer-contact ul li span {
    padding-left: 15px;
}

.footer-bottom {
    text-align: center;
    background-color: var(--secondColor);
    color: #fff;
    padding: 30px 0;
    font-size: 12px;
    text-transform: capitalize;
}

.footer-bottom a {
    color: var(--fristColor);
    text-decoration: none;
}
