/* 
Theme Name: Nipo | Personal Portfolio Template
version: 1.0
Author Name: Mehedi Hasan Nipo
Author Url: https://mehedihasannipo.com
Developed By: Mehedi Hasan Nipo

Table Of Content
---
1. Reset Css
2. Header Css
3. Banner Css
4. About Css
5. Skill Css
6. Services Css
7. Resume Css
8. Portfolio Css
9. Testimonials Css
10. Blog Css
11. Contact Css
12. Footer Css
13. Mail Sent Page Css
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

/* 1. Reset Css */
:root {
    --primary-color: #440b8e;
    --secondery-color: #0a70e4;
    --bg-color: #f2f2f2;
    --white-color: #fff;
    --black-color: #333;
    --red-color: #e91e63;
    --gray-color: #ddd;
    --banner-anim: rgba(255, 255, 255, 0.2)
}
body {
    font-family: 'Open Sans', sans-serif;;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: var(--black-color);
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
a {
    text-decoration: none;
    color: var(--black-color);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}

/* Padding */
.pt-80 {
    padding-top: 80px;
}
.pb-80 {
    padding-bottom: 80px;
}

/* Preloader Css */
.preloader {
    position: fixed;
    background-image: -webkit-gradient(linear, left top, right top, from(var(--primary-color)), to(var(--secondery-color)));
    background-image: -o-linear-gradient(left, var(--primary-color), var(--secondery-color));
    background-image: linear-gradient(to right, var(--primary-color), var(--secondery-color));
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 99999;
}
.preloader ul {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}
.preloader ul li {
    width: 3px;
    height: 35px;
    background-color: var(--white-color);
    display: inline-block;
    margin: 0 5px;
    -webkit-animation: mhnPre 1s infinite;
            animation: mhnPre 1s infinite
}
.preloader ul li:nth-child(1){
    -webkit-animation-delay:.1s;
            animation-delay:.1s;
}
.preloader ul li:nth-child(2){
    -webkit-animation-delay:.2s;
            animation-delay:.2s;
}
.preloader ul li:nth-child(3){
    -webkit-animation-delay:.3s;
            animation-delay:.3s;
}
.preloader ul li:nth-child(4){
    -webkit-animation-delay:.4s;
            animation-delay:.4s;
}
.preloader ul li:nth-child(5){
    -webkit-animation-delay:.5s;
            animation-delay:.5s;
} 
@-webkit-keyframes mhnPre{
    0%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    25%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    50%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    75%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    100%{
      -webkit-transform:scaleY(2);
              transform:scaleY(2)
    }
} 
@keyframes mhnPre{
    0%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    25%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    50%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    75%{
      -webkit-transform:scaleY(1);
              transform:scaleY(1)
    }
    100%{
      -webkit-transform:scaleY(2);
              transform:scaleY(2)
    }
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    z-index: 999;
}
.scroll-top:hover {
    color: var(--white-color);
}

/* Btn Css */
.btn-box {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 40px;
    position: relative;
    z-index: 2;
    background-color: var(--red-color);
    color: var(--white-color);
}
.btn-box:hover {
    color: var(--white-color);
}
.btn-box:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: 0;
    top: 0;
    background-color: var(--primary-color);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    z-index: -1;
}
.btn-box:hover:before {
    width: 100%;
    height: 100%;
}

.btn-box2 {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 40px;
    position: relative;
    z-index: 2;
    background-color: var(--primary-color);
    color: var(--white-color);
}
.btn-box2:hover {
    color: var(--white-color);
}
.btn-box2:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    right: 0;
    top: 0;
    background-color: var(--red-color);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    z-index: -1;
}
.btn-box2:hover:before {
    width: 100%;
    height: 100%;
}

/* Section Title */
.section-title {
    margin-bottom: 70px;
}
.section-title h2 {
    text-transform: capitalize;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}
.section-title h2:before {
    content: '';
    position: absolute;
    width: 70px;
    height: 5px;
    left: 50%;
    bottom: 0;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    background-color: var(--primary-color);
}
.section-title h2:after {
    content: '';
    position: absolute;
    width: 35px;
    height: 5px;
    left: 50%;
    bottom: 0;
    background-color: var(--red-color);
}

/* Bg Overlay */
.bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}
.bg:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    opacity: .50;
    z-index: -1;
}

/* 2. Header Css */
.header-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 25px 0;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.header-area.sticky {
    position: fixed;
    padding: 20px 0;
    background-color: var(--primary-color);
}
.logo img {
    max-width: 155px;
}
.menu ul li a {
    display: block;
    text-transform: capitalize;
    font-size: 18px;
    font-weight: 500;
    color: var(--white-color);
    margin: 0 10px;
}
.menu ul li a:hover {
    color: var(--red-color);
}
.menu ul li.current a {
    color: var(--red-color);
}
.slicknav_menu {
    display: none;
}

/* 3. Banner Css */
.banner-area {
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.banner-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.banner-area h2 {
    font-size: 36px;
    font-weight: 700;
}
.banner-area h2 span {
    color: var(--red-color);
}
.banner-area h5 {
    font-weight: 600;
    margin: 10px 0 20px;
}
.banner-area h5 span {
    color: var(--secondery-color);
    margin-left: 5px;
}
.banner-btn a {
    margin-right: 20px;
}
.banner-counter {
    margin-top: 100px;
}
.single-counter h4 {
    font-weight: 600;
    font-size: 22px;
    text-transform: capitalize;
}
.single-counter h6 {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--red-color);
    margin-bottom: 10px;
}
.mhn-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.mhn-banner li {
    position: absolute;
    display: block;
    list-style: none;
    width: 25px;
    height: 25px;
    background: var(--banner-anim);
    -webkit-animation: mhnBanner linear 7s infinite;
            animation: mhnBanner linear 7s infinite;
    bottom: -150px;
    border-radius: 10px;
}
.mhn-banner li:nth-child(1) {
    left: 86%;
    width: 80px;
    height: 80px;
    -webkit-animation-delay: 0s;
            animation-delay: 0s;
    border-radius: 50%;
} 
.mhn-banner li:nth-child(2) {
    left: 12%;
    width: 30px;
    height: 30px;
    -webkit-animation-delay: 1.5s;
            animation-delay: 1.5s;
    -webkit-animation-duration: 10s;
            animation-duration: 10s;
    border-radius: 50%
}
.mhn-banner li:nth-child(3) {
    left: 70%;
    width: 100px;
    height: 100px;
    -webkit-animation-delay: 5.5s;
            animation-delay: 5.5s;
}
.mhn-banner li:nth-child(4) {
    left: 42%;
    width: 100px;
    height: 100px;
    -webkit-animation-delay: 10s;
            animation-delay: 10s;
    -webkit-animation-duration: 5s;
            animation-duration: 5s;
}
.mhn-banner li:nth-child(5) {
    left: 65%;
    width: 10px;
    height: 10px;
    -webkit-animation-delay: 10s;
            animation-delay: 10s;
    border-radius: 50%;
}
.mhn-banner li:nth-child(6) {
    left: 15%;
    width: 50px;
    height: 50px;
    -webkit-animation-delay: 3.5s;
            animation-delay: 3.5s;
}

@-webkit-keyframes mhnBanner {
    0% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
    }
    100% {
      -webkit-transform: translateY(-900px) rotate(45deg);
              transform: translateY(-900px) rotate(45deg);
      opacity: 0;
    }
}

@keyframes mhnBanner {
    0% {
      -webkit-transform: translateY(0);
              transform: translateY(0);
    }
    100% {
      -webkit-transform: translateY(-900px) rotate(45deg);
              transform: translateY(-900px) rotate(45deg);
      opacity: 0;
    }
}

/* 4. About Css */
.about-content h2 {
    text-transform: capitalize;
    font-weight: 700;
    color: var(--primary-color);
}
.about-content h4 {
    font-size: 24px;
    font-weight: 600;
    text-transform: capitalize;
    margin: 10px 0 30px;
}
.about-content p {
    font-weight: 500;
}
.about-content ul li {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    padding-bottom: 5px;
}
.about-content ul li i {
    margin-right: 3px;
    color: var(--primary-color);
}
.about-content ul li span {
    text-transform: capitalize;
    font-weight: 700;
}
.about-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 35px;
    text-align: center;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-right: 15px;
    border-radius: 3px;
}

/* 5. Skill Css */
.skill-area {
    background-color: var(--bg-color);
}
.skill-progress {
    margin-bottom: 30px;
}
.skill-progress h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.skill-progress h4 span {
    float: right;
}
.skill-progress .progress {
    height: 14px;
}
.skill-progress .progress-bar {
    background-color: var(--primary-color);
} 

/* 6. Services Css */
.single-service {
    padding: 40px 20px 20px;
    margin-bottom: 30px;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.single-service i {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 22px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.single-service h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0;
}
.mhn-service {
    background-color: var(--primary-color);
    -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
            transform: translateY(-5px);
    color: var(--white-color);
    -webkit-box-shadow: 0 8px 16px var(--primary-color) !important;
            box-shadow: 0 8px 16px var(--primary-color) !important;
}
.mhn-service i {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* 7. Resume Css */
.resume-area {
    background-color: var(--bg-color);
}
.resume h2 {
    font-size: 26px;
    font-weight: 600;
}
.resume-content {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 30px;
    border-left: 3px solid var(--primary-color);
    -webkit-box-shadow: 0 4px 8px var(--gray-color);
            box-shadow: 0 4px 8px var(--gray-color);
}
.resume-content h4 {
    text-transform: capitalize;
    font-size: 20px;
    font-weight: 700;
}
.resume-content span {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 500;
    font-size: 14px;
    padding: 3px 10px;
    border-radius: 5px;
    margin: 5px 0 10px;
}
.resume-content p {
    margin-bottom: 0;
}

/* 8. Portfolio Css */
.single-portfolio {
    margin-bottom: 80px;
}
.single-portfolio img {
    width: 100%;
    max-height: 270px;
}
.portfolio-overaly {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.portfolio-overaly:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    opacity: .60;
    z-index: -1;
}
.portfolio-overaly a {
    position: absolute;
    bottom: 50%;
    right: 50%;
    color: var(--white-color);
    font-size: 22px;
    -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
            transform: translateX(50%);
}
.single-portfolio:hover .portfolio-overaly {
    opacity: 1;
    visibility: visible;
}
.portfolio-menu li {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    margin: 10px 7px;
    padding: 5px 10px;
    cursor: pointer;
}
.portfolio-menu li.active {
    background-color: var(--red-color);
}
.portfolio-content {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px;
    z-index: 99;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.single-portfolio:hover .portfolio-content {
    bottom: -30px;
}
.portfolio-content h4 {
    text-transform: capitalize;
    color: var(--red-color);
    font-size: 22px;
    font-weight: 600;
}

/* 9. Testimonials Css */
.single-testimonial {
    -webkit-box-shadow: 0 4px 8px var(--gray-color);
            box-shadow: 0 4px 8px var(--gray-color);
}
.single-testimonial i {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    font-size: 55px;
}
.single-testimonial .author-img {
    position: relative;
    max-width: 90px;
    margin-right: 15px;
    padding: 10px;
}
.single-testimonial .author-img:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    border-right: 3px solid var(--gray-color);
    border-bottom: 3px solid var(--primary-color);
    border-left: 3px solid var(--gray-color);
    -webkit-animation: mhnAuthor linear 7s infinite;
            animation: mhnAuthor linear 7s infinite;
}
.single-testimonial .author-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.single-testimonial .author-info h4 {
    text-transform: capitalize;
    font-size: 22px;
    font-weight: 600;
}
.single-testimonial .author-info h4 span {
    display: block;
    text-transform: lowercase;
    font-size: 14px;
    color: var(--primary-color);
    margin-top: 5px;
}
.single-testimonial p {
    margin-top: 20px;
}
.testimonials .slick-slide {
    margin: 0 15px;
}
.testimonials .slick-dots {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
    margin-top: 40px;
}
.testimonials .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}
.testimonials .slick-dots li button {
    text-indent: -9999px;
    width: 1px;
    height: 5px;
    background-color: var(--black-color);
    border: 0;
    cursor: pointer;
}
.testimonials .slick-dots li.slick-active button {
    background-color: var(--primary-color);
}

@-webkit-keyframes mhnAuthor {
    0% {
        -webkit-transform: rotate(0);
                transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes mhnAuthor {
    0% {
        -webkit-transform: rotate(0);
                transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

/* Blog Css */
.blog-area {
    background-color: var(--bg-color);
}
.single-blog {
    background-color: var(--white-color);
    border-radius: 5px;
}
.blog-img {
    position: relative;
    z-index: 2;
}
.blog-img:before {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--black-color);
    opacity: 0;
    visibility: hidden;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.single-blog:hover .blog-img:before {
    opacity: .30;
    visibility: visible;
    width: 100%;
}
.blog-img img {
    width: 100%;
}
.blog-content {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
}
.blog-content h4 {
    font-size: 22px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}
.blog-content h4 a:hover {
    color: var(--primary-color);
}
.blog-meta {
    text-align: center;
    padding: 0 20px;
}
.blog-meta a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
}
.blog-meta .col-6:first-child a {
    border-right: 1px solid var(--gray-color);
}
.blog-meta a i {
    color: var(--primary-color);
}

/* 11. Contact Css */
.contact-map iframe {
    width: 100%;
    height: 500px;
    border: 1px solid var(--gray-color);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-color);
    margin-bottom: 15px;
}
.contact-form textarea {
    height: 120px;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible {
    outline-color: var(--primary-color);
}
.contact-form input[type="submit"] {
    text-transform: capitalize;
    width: auto;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 35px;
    cursor: pointer;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.contact-form input[type="submit"]:hover {
    background-color: var(--red-color);
}

/* 12. Footer Css */
.footer-area {
    background-color: var(--black-color);
}
.footer-area p span {
    font-weight: 700;
    color: var(--red-color);
}

/* 13. Mail Sent Page Css */
.mail {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    height: 100vh;
    overflow: hidden;
}
.mail-box {
    max-width: 820px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 100px 40px;
    border: 1px solid #ddd;
    text-align: center;
}
.mail-box h4 {
    font-size: 30px;
    line-height: 38px;
    color: var(--primary-color);
}
.mail-box p {
    font-size: 20px;
    margin: 30px 0;
}