@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');


/* ----- Setting variable color----- */

body.dark {
    --bg-color1: #1C1C1C;
    --bg-color2: #343434;
    --color1: #FFFF;
    --color2: #DDD;
}

body:not(.dark) {
    --bg-color1: #eaeae9;
    --bg-color2: #fbfdff;
    --color1: #3e4455;
    --color2: #000;
}

/* -----Root CSS Variable------ */


*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* -----CSS Global----- */

a {
    text-decoration: none;
    outline: none;
}

li {
    list-style: none;
}

h1 {
    font-size: 3rem;
    color: var(--color1);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    color: var(--color1);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    color: var(--color1);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--color1);
}

img {
    width: 100%;
    object-fit: cover;
    vertical-align: middle;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* ========== Dark and light mode toggle ======== */

.theme-toggle {
    position: fixed;
    top: 50%;
    z-index: 10;
    right: 0;
    border: none;
    background-color: var(--color2);
}

body:not(.dark) .theme-toggle .lni-sun,
body.dark .theme-toggle .lni-night {
    cursor: pointer;
    color: var(--bg-color2);
    padding: 10px 10px;
    display: block;
    font-size: 1.25rem;
    transition: 0.3s;
}

body:not(.dark) .theme-toggle .lni-night {
    display: none;

}

body.dark .theme-toggle .lni-sun {
    display: none;
}

/* -----Wrapper------- */

.portfolio-container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 15px;
}

.portfolio-row {
    display: flex;
    flex-wrap: wrap;
}

/* -----Style for Header Navbar------ */

header {
    left: 0px;
    right: 0px;
    z-index: 20;
    transition: .8s;
    padding: 15px;
    position: fixed;
    background-color: var(--bg-color1);
}

header .portfolio-row.header-wrap {
    justify-content: space-between;
    align-items: center;
}

.portfolio-navbar {
    display: none;
}

.brand-name a {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color1);
}

.navbar-toggle i {
    font-size: 1.25rem;
    line-height: 30px;
    cursor: pointer;
    color: var(--color1);
}

/* -----Navbar for mobile view only----- */

.portfolio-navbar.show {
    display: block;
    position: absolute;
    background-color: #ecf1fa;
    width: 100%;
    left: 0px;
    top: 60px;
    padding: 15px;
    border-top: 5px solid #000;
    text-align: center;
}

.portfolio-navbar ul li {
    display: block;
}

.portfolio-navbar ul li a {
    color: #000;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 45px;
}

/* ----- Style for Slider or About Section------- */

#about {
    padding-top: 100px;
    background-color: var(--bg-color1);
}

.about-content {
    align-items: center;
}

.about-intro {
    margin-top: 3rem;
    width: 100%;
    order: 2;
}

/* ----- Section Subtitle ------- */

.subtitle {
    position: relative;
    color: #f987d6;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    padding-left: 55px;
}

.subtitle::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 35px;
    height: 3px;
    background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
}

/* ---- Main Title ---- */

h1 strong,
h2 strong {
    background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.about-text h3 {
    color: var(--color1);
    margin-bottom: 10px;
}

p strong {
    color: var(--color2);
}

/* ------ Hello Button -------- */

.hello-btn a {
    display: inline-block;
    margin: 20px 0;
    padding: 15px 45px;
    color: #FFF;
    background-color: #977ec7;
    z-index: 1001;
    line-height: 30px;
    border-radius: 15px;
    transition: all 0.3s ease-out 0s;
}

.hello-btn a:hover {
    background-color: #293b5f;
}


/* ------ Style for about image -------- */

.about-image {
    width: 100%;
    order: 1;
    position: relative;
    z-index: 2;
    transition-duration: 0.4s;
    cursor: pointer;
}

.about-image img {
    border-radius: 100% 50% 50% 100% / 75% 69% 69% 75%;
}

.about-image::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    background-image: linear-gradient(11deg, #291342 0%, #c60242 100%);
    z-index: -1;
    border-radius: 100% 50% 50% 100% / 75% 69% 69% 75%;
    box-shadow: 2px 10px 0px 0px rgba(216, 19, 19, 0.16);
    transition: all .5s ease-in-out;
}

.about-image:hover {
    transform: translateY(-10.5px);
    filter: drop-shadow(0 0 30px rgba(223, 59, 13, 0.8));
}

/* Resume Section Style */

#resume {
    background-color: var(--bg-color2);
    padding: 75px 0;
}

.resume-heading {
    width: 100%;
    text-align: center;
}

.resume-body {
    width: 100%;
    padding-top: 30px;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 500px;
}

.resume-item {
    display: inline;
    position: relative;
    margin-bottom: 25px;
    padding: 0 10px;
}

.resume-item a {
    font-size: 14px;
    font-weight: 400;
    color: var(--color1);
    line-height: 45px;
}

.resume-tab {
    display: none;
}

.resume-tab.active {
    display: block;
    animation: fade .5s;
}

/* Animation for fade effect */

@keyframes fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.resume-item.active .resume-link {
    position: relative;
    font-weight: 700;
}

.resume-item.active .resume-link::before {
    position: absolute;
    content: "";
    background-color: #7257F2;
    left: 0;
    top: 30px;
    bottom: 0;
    height: 3px;
    width: 100%;
}

/* ------ Resume Tab Content -------- */

.resume-content {
    display: flex;
}

.resume-content:not(:last-child) {
    padding-bottom: 44px;
}

.years {
    width: 90px;
    flex: none;
    color: var(--color1);
}

.qualification-content {
    position: relative;
    padding-left: 20px;
}

.qualification-content::before {
    content: "";
    height: 100%;
    width: 3px;
    left: 0;
    top: -10px;
    position: absolute;
    background-color: #E8E8E8;
}

.qualification-content::after {
    position: absolute;
    content: "";
    height: 7px;
    width: 7px;
    left: -2px;
    top: 12px;
    transform: rotate(45deg);
    background: #e15747;
}

.qualification-content .title {
    font-weight: 400;
    display: inline-block;
    color: #d55041;
}

.institution,
.organization {
    color: #78add9;
    font-weight: 400;
}

/* ------ Skills Bar -------- */

.bar-content {
    margin-bottom: 15px;
}

.bar-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
}

.bar-title,
.bar-percentage {
    color: var(--color1);
}

.bar-progress {
    display: flex;
    background-color: #e9eeef;
    height: 8px;
    border-radius: 5px;
}

.progress-bar {
    width: 0;
    display: flex;
    position: relative;
    transition-delay: 1.5s;
    background-color: #75a9d6;
    border-radius: 5px;
}

.resume-tab.active .progress-bar {
    animation: progress 1500ms ease-in 1;
}

/* ----- Animation For Skill Progress Bar --------- */

@keyframes progress {
    from {
        width: 0;
    }
}

/* ------- Navigation link when scroll active -------- */

.portfolio-navbar ul li a.active-link {
    font-weight: 800;
}

/* ----- Header Stick to Top -------- */

header.header-sticky {
    position: fixed;
    background-color: #FFF;
    z-index: 2000;
    transition: .8s;
    box-shadow: 0 4px 6px 0 rgba(12, 0, 46, 0.05);
}

.header-sticky .brand-name a {
    color: #3e4455;
}

.header-sticky .navbar-toggle i {
    color: #3e4455;
}

.header-sticky .portfolio-navbar ul li a {
    color: #3e4455;
}

/* ------- Services ---------- */

#services {
    padding: 75px 0;
    background-color: var(--bg-color1);
}

.services-list {
    padding-top: 10px;
}

.service-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    cursor: pointer;
}

.services-list .service-row:not(:last-child) {
    padding-bottom: 45px;
}

.service-count {
    width: 35%;
}

.services-name {
    width: 65%;
}

.services-name h3 {
    font-size: 26px;
    color: var(--color1);
    font-weight: 600;
}

/* ------- Services count hover effect --------- */

.service-count h2 {
    font-size: 6rem;
    position: relative;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.1px var(--color1);
}

.service-count h2::before {
    content: attr(data-fill-text);
    position: absolute;
    width: 0;
    height: 100%;
    font-weight: 800;
    transition: width 2s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    color: var(--color1);
    white-space: nowrap;
    -webkit-text-stroke: 0 transparent;
}

.service-count h2:hover::before {
    width: 100%;
}

/* ------- Projects Slider ---------- */

#projects {
    padding: 75px 0;
    background-color: var(--bg-color2);
}

.swiper {
    padding-top: 30px;
}

.product-content {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.product-content img {
    border-radius: 0.5rem;
}

.img-overlay {
    position: absolute;
    left: 25px;
    top: 25px;
    right: 25px;
    bottom: 25px;
    background-color: rgba(16, 16, 16, .5);
    transition: .5s;
    transform: scale(1.15);
    opacity: 0;
}

.product-content:hover .img-overlay {
    opacity: 1;
    transform: scale(1);
}

.product-title {
    width: 100%;
    position: absolute;
    bottom: -45px;
    padding: 50px 30px;
    opacity: 0;
    transition: .5s;
}

.product-content:hover .product-title {
    bottom: 30%;
    opacity: 1;
}

.product-title h4 {
    color: #FFF;
    font-size: 1.5rem;
}

.product-title p {
    color: #FFF;
}

/* ----- Swiper arrow and pagination --------- */

.arrow {
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.prevArrowBtn,
.nextArrowBtn {
    z-index: 1000;
    border: 2px solid var(--color2);
    color: var(--color1);
    background-color: var(--bg-color2);
    font-size: .80rem;
    text-align: center;
    cursor: pointer;
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    line-height: 2.625rem;
}

.nextArrowBtn {
    margin-left: 10px;
}

/* ---- Styling swiper bullets ----- */

.swiper-pagination-bullets.swiper-pagination-horizontal {
    width: 60%;
    display: flex;
    position: static;
    margin: 0 auto;
}

.swiper-pagination-bullet {
    width: 100%;
    height: 5px;
    border-radius: 0;
}

.swiper-pagination-bullet-active {
    background-image: linear-gradient(162.41deg, #43baff 1.77%, #7141b1 92.78%);
}

.swiper-pagination-bullet:hover {
    background-image: linear-gradient(162.41deg, #43baff 1.77%, #7141b1 92.78%);
    opacity: 1;
    outline: none;
}

/* ------- Testimonial Slider ------ */

.testimonial {
    background-color: var(--bg-color1);
    padding: 75px 0;
}

.testimonial h2 {
    text-align: center;
}

.testimonial-heading {
    margin: 0 auto;
}

.testimonial-quote {
    text-align: center;
}

.testimonial-swiper i {
    font-size: 4rem;
    background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.testimonial-swiper p,
.testimonial-swiper h4 {
    text-align: center;
    margin-bottom: 15px;
}

.testimonial-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.testimonial-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 18px;
}

.testimonial-label {
    color: var(--color1);
}

/* ------ Contact Section Style ------- */

#contact {
    padding: 75px 0;
    background-color: var(--bg-color2);
    position: relative;
    z-index: 2;
}

.contact-info {
    width: 100%;
    padding-top: 15px;
}

.contact-info li {
    display: flex;
    flex-wrap: wrap;
    background: #FFF;
    border-radius: 0.5rem;
    margin-bottom: 28px;
    padding: 30px 40px;
    position: relative;
    cursor: pointer;
    border: 1px solid #e2e5f1;
    box-shadow: 0 0.25rem 0.75rem rgba(11, 15, 25, 0.1), 0 0.125 0.4rem rgba(11, 15, 25, 0.05);
}

.contact-icon {
    margin: auto 0;
}

.contact-icon i {
    color: #3e4455;
    display: inline-block;
    font-size: 24px;
    margin-right: 30px;
    position: relative;
}

.contact-detail h5 {
    color: #3e4455;
    font-size: 1rem;
}

.contact-info li::after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    z-index: -1;
    transition: all 0.15s ease-out 0s;
    background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
}

.contact-info li:hover::after {
    top: 8px;
    left: 8px;
}

/* ----- Footer contact form -------- */

.contact-heading {
    margin-top: 30px;
}

.footer-contact {
    width: 100%;
    padding-top: 15px;
}

.input-wrapper,
.input-subject,
.form-submit {
    width: 100%;
    padding: 10px 0;
}

.input-control,
.contact-msg {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #f6f6f9;
    border: 1px solid #f6f6f9;
    color: #3e4455;
    height: 60px;
    line-height: 56px;
    outline: none;
    padding: 0 30px;
    width: 100%;
    font-weight: 500;
}

.contact-msg {
    height: 150px;
    line-height: 1.2;
    padding: 20px 30px;
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    color: #FFF;
    font-family: 'Poppins', sans-serif;
    background-color: #ff5252;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

/* --- message following form submission: error or success. */

/* ========= Message After Form Submission =======*/

.loader {
    width: 100%;
    padding: 10px;
    background-color: #3d4145;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
}

.loader.show {
    visibility: visible;
    opacity: 1;
    animation: fadeIn .4s ease;
}

.loader i {
    animation: rotateme .4s linear infinite;
    color: var(--color1);
}

/*============ Loader animation =========*/

@keyframes rotateme {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.form-message {
    width: 100%;
    background-color: #3d4145;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
}

.form-message.show {
    opacity: 1;
    visibility: visible;
}

.success-msg {
    color: green;
}

.error-msg {
    color: red;
}


/* ------- Main Footer ------- */

footer {
    background-color: var(--bg-color1);
    padding: 20px 0;
}

.portfolio-row.footer-wrap {
    justify-content: center;
}

.footer-top {
    display: none;
}

.footer-bottom {
    padding: 20px 0;
}

.copyright-text {
    order: 2;
    padding-top: 20px;
}

.social-item {
    display: inline-block;
}

.social-icons li a {
    height: 3rem;
    width: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    background: #FFF;
    transition: all 500ms ease;
    color: rgba(5, 18, 20, 0.7);
    font-size: 1.1rem;
}

.social-item:not(:last-child) {
    margin-right: 0.5rem;
}

.social-icons li a:hover {
    transform: translateY(-10px);
}

/* ---- scroll to top ---- */

#scroll-top-btn {
    display: none;
}


/* ======= Medium devices (tablets, 768px and up) */

@media (min-width:768px) {

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3.5rem;
        color: var(--color1);
        font-weight: 600;
    }

    /* ----Header Responsive---- */

    header {
        position: absolute;
        padding: 0px 15px;
        background-color: transparent;
    }

    .navbar-toggle i {
        display: none;
    }

    .portfolio-navbar {
        display: block;
    }

    .portfolio-navbar ul li {
        display: inline-block;
        padding: 0 10px;
    }

    .portfolio-navbar ul li a {
        color: var(--color1);
        line-height: 65px;
    }

    /* ---- Slider or About Section Responsive */

    #about {
        padding: 175px 0 150px 0;
    }

    .about-intro {
        width: 60%;
        margin-top: 0;
        order: 1;
    }

    .about-intro p {
        padding-right: 16%;
    }

    /* ----- Slider Image Responsive ------ */

    .about-image {
        width: 40%;
        order: 2;
    }

    /* ======= Resume Section Responsive ======= */

    .resume-heading {
        margin: auto 0;
        width: 35%;
        text-align: unset;
    }

    .resume-body {
        width: 65%;
        margin-top: 30px;
        padding-top: 0;
        padding-left: 40px;
        min-height: 400px;
    }

    .resume-item {
        display: block;
        padding-left: 20px;
    }

    .resume-item .resume-link {
        font-size: 1.1rem;
    }

    .resume-item.active .resume-link::before {
        position: unset;
    }

    .resume-item.active::before {
        position: absolute;
        content: "";
        background-color: #7257F2;
        left: 0;
        top: auto;
        bottom: 0;
        height: 100%;
        width: 3px;
    }

    .resume-item.active {
        background: linear-gradient(90deg, #775afc1a 0%, #775afc00 100%);
    }

    /* ---- Skills and Progress bar ------ */

    .bar-content {
        margin-bottom: 0;
    }

    /* ------- Service Responsive ------- */

    .service-count {
        width: 20%;
    }

    .services-name {
        width: 70%;
    }

    .services-list .service-row:not(:last-child) {
        padding-bottom: 0;
    }

    /* Swiper portfolio responsive pagination */

    .swiper-pagination-bullets.swiper-pagination-horizontal {
        width: 80%;
    }

    /* Testimonial Responsive */

    .testimonial-heading {
        width: 45%;
    }

    .testimonial-swiper h4 {
        font-size: 2rem;
    }

    .testimonial-info {
        margin-top: 30px;
    }

    /* ----- Contact responsive ------ */

    .contact-info {
        width: 35%;
        padding-top: 15px;
    }

    .contact-heading {
        display: none;
    }

    .footer-contact {
        width: 65%;
        padding-left: 40px;
    }

    .input-wrapper {
        padding: 0 10px;
        width: 50%;
        margin-bottom: 10px;
    }

    .input-subject,
    .form-submit {
        padding: 10px;
    }

    /* --- Main footer responsive ----- */

    .footer-top {
        display: block;
        border-bottom: 1px solid var(--bg-color2);
    }

    .portfolio-row.footer-wrap {
        justify-content: space-between;
        align-items: center;
    }

    .copyright-text {
        order: 0;
        padding-top: 0;
    }

    /* ----- Scroll to top ----- */

    #scroll-top-btn {
        position: fixed;
        right: 50px;
        bottom: 36px;
        display: block;
        width: 50px;
        height: 50px;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        background-image: linear-gradient(to right, #977ec7 0%, #f987d6 100%);
        transition: 0.3s;
        opacity: 0;
        visibility: hidden;
        z-index: 2000;
    }

    #scroll-top-btn i {
        font-size: 1rem;
        color: #FFF;
    }

    #scroll-top-btn.visible {
        opacity: 1;
        visibility: visible;
    }

    /* ========== DARK AND LIGHT MODE TOGGLE RESPONSIVE ======== */

    .theme-toggle {
        background: none;
        position: static;
        transform: none;
    }

    body:not(.dark) .theme-toggle .lni-sun,
    body.dark .theme-toggle .lni-night {
        color: var(--color2);
    }

    /* ========== TOGGLER ICON COLOR WHEN NABAR STICKY  ======== */

    body:not(.dark) .header-sticky .theme-toggle .lni-sun,
    body.dark .header-sticky .theme-toggle .lni-night {
        color: #3e4455;
    }
}