@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
    --clr-neon: #24d7ff;
}

html {
    scroll-behavior: smooth;
}

/*======== Using Css Custom Variables =========*/

body.dark {
    --bg-color1: #0b0f19;
    --bg-color2: #1c1e2a;
    --color1: #FFF;
    --color2: #DDD;
}

body:not(.dark) {
    --bg-color1: #fbfdff;
    --bg-color2: #f5f5f5;
    --color1: #3e4455;
    --color2: #000;
}

/*======= Universal CSS Properties =======*/

*,
::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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;
    text-align: center;
}

h3 {
    color: var(--color1);
}

h4 {
    font-size: 1.25rem;
    color: var(--color1);
    font-weight: 600;
}

h6 {
    font-size: 1rem;
}

p {
    color: var(--color1);
}

.about-intro.p {
    text-align: center;
}

p strong {
    font-weight: 500;
    color: var(--color2);
}


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-night,
body.dark .theme-toggle .lni-sun {
    cursor: pointer;
    color: var(--bg-color2);
    padding: 10px 10px;
    display: block;
    font-size: 1.25rem;
}

body:not(.dark) .theme-toggle .lni-sun {
    display: none;

}

body.dark .theme-toggle .lni-night {
    display: none;
}

/*========= Navigation Link When Scroll Active =======*/

.portfolio-navbar ul li a.active-link {
    font-weight: 800;
}

/*======== CSS Header Stick To Top =========*/

header.header-sticky {
    position: fixed;
    background-color: #f5f5f5;
    z-index: 2000;
    transition: .4s;
    left: 20px;
    right: 20px;
    top: 15px;
    border: 1px solid var(--clr-neon);
    color: var(--clr-neon);
    box-shadow: 0 0 40px var(--clr-neon);
}

.header-sticky .brand-name a {
    color: #3e4455;
}

.header-sticky .navbar-toggle i {
    color: #3e4455;
}

.header-sticky .portfolio-navbar ul li a {
    color: #343434;
}


/* ======= Wraper ======== */

.portfolio-container {
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 15px;
    
}

.portfolio-row {
    display: flex;
    flex-wrap: wrap;
}

/*========== Styling Navigation Bar ========*/

header {
    z-index: 20;
    transition: 0.3s;
    padding: 15px;
    position: fixed;
    background-color: var(--bg-color1);
    border-radius: 20px;
    left: 20px;
    right: 20px;
    top: 15px;
    border: 1px solid var(--clr-neon);
    background-color: var(--bg-color1);
    color: var(--clr-neon);
    box-shadow: 0 0 40px var(--clr-neon);
}

header .portfolio-row.header-wrap {
    justify-content: space-between;
    align-items: center;
}

.brand-name a {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color1);
}

.portfolio-navbar {
    display: none;
}

.navbar-toggle i {
    font-size: 1.25rem;
    line-height: 30px;
    cursor: pointer;
    color: var(--color1);
}

/*========== Responsive Navigation Menu =======*/

.portfolio-navbar.loader.show {
    display: block;
    position: absolute;
    background-color: rgb(236, 241, 256);
    width: 100%;
    left: 0;
    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-weight: 300;
    font-size: 0.9rem;
    line-height: 45px;
}

/* ========= Style For About Section ======== */

#about {
    padding-top: 100px;
    background-color: var(--bg-color1);
}

.about-content {
    margin-top: -100px;
    align-items: center;
}

.about-intro {
    margin: 3rem 0;
    width: 100%;
    order: 2;
    text-align: center;
}

.my-name {
    margin-right: 20px;
}

.about-text {
    color: var(--color1);
    margin-bottom: 10px;
}

.itsme {
    width: 50%;
    position: relative;
    top: 50px;
    margin-left: 100px;
    margin-bottom: -40px;
}

/*======== CSS Main Heading =======*/

h1 strong,
h2 strong {
    background-image: linear-gradient(to right, #02aab0 0%, #00cdac 100%);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

/*=========== Style For About Image ==========*/


.about-image {
    width: 100%;
    order: 1;
    position: relative;
    z-index: 2;
    transition-duration: 0.3s;
    cursor: pointer;
}

.about-image::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background-image: linear-gradient(11deg, #6ec1e4 0%, #54595f 100%);
    z-index: -1;
    transition: all 0.3s ease-in-out;
    border-radius: 100% 73% 100% 72% / 99% 86% 75% 63%;
    box-shadow: 2px 10px 0px 0px rgba(216, 19, 19, 0.16);
}

/* .box-border {
    position: absolute;
    border-style: double;
    border-color: #00cdac;
    width: 400px;
    height: 400px;
}

.box-border2 {
    position: absolute;
    border-style: double;
    border-color: #00cdac;
    width: 400px;
    height: 400px;
    top: 20px;
    right: 0px;
} */

.about-image:hover {
    transform: translateY(-10.5px);
}

.about-image img {
    border-radius: 100% 73% 100% 72% / 99% 86% 75% 63%;
}

.about-image:hover::before {
    filter: drop-shadow(0 0 30px rgba(130, 237, 255, 0.97));
}

/* ======== Style For Resume Section ======== */

#resume {
    padding: 60px 0;
    background-color: var(--bg-color2);
}

/*========= Resume Intro ======*/

.resume-intro {
    width: 100%;
    margin-top: 20px;
}

.resume-text {
    margin-top: 18px;
}

/*========== Hello Button ===========*/

.hello-btn {
    display: inline-block;
    margin: 20px 0;
    padding: 15px 45px;
    color: #fff;
    background-color: #6366f1;
    line-height: 30px;
    transition: all 0.3s ease-out 0s;
}

.hello-btn a {
    color: #FFF;
}

.hello-btn a:hover {
    background-color: #293b5f;
}

/*========= Style For Resume Body =========*/

.resume-body {
    width: 100%;
    margin-top: 20px;
}

.resume-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.btn {
    position: relative;
    padding: 0 10px;
    background-color: #d5d5d5;
    font-size: 1.1rem;
    border-radius: 5px;
    line-height: 40px;
    color: #000;
    cursor: pointer;
    border: 0;
    font-family: 'Poppins', sans-serif;
    margin-top: 1rem;
    transition: .4s;
}

.btn:not(:last-child) {
    margin-right: 15px;
}

.btn:hover,
.btn.active {
    background-color: #4d63dd;
    color: #FFF;
}

/* ========== Style For Resume Tab ========== */

.resume-tab {
    display: none;
}

.resume-tab.active {
    display: block;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.institution, .organization {
    color: #78add9;
    font-weight: 400;
}

.years {
    color: var(--color1);
}

.qualification-content {
    position: relative;
    padding: 1rem 2.1rem;
}

.qualification-content::after {
    position: absolute;
    content: "";
    height: 7px;
    width: 7px;
    left: 8px;
    top: 25px;
    transform: rotate(45deg);
    background: #e15747;
}

.qualification-content::before {
    content: "";
    height: 70%;
    width: 3px;
    left: 10px;
    position: absolute;
    background: #e8e8e8;
}

/*========== Style For Skills Bar Progress ==========*/

.bar-content {
    margin-bottom: 15px;
}

.bar-heading {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
}

.devlogo {
    flex: 1 0 25%; /* 25% width for each column */
    text-align: center;
    margin: 10px;
  }
  
.devlogo img {
    max-width: 50%; /* Adjust the image size within the container */
  }
  
.bar-title {
    margin-top: 5px;
    color: var(--color1);
}

/*========== Style For Services Section ========*/

#services {
    padding: 60px 0;
    background-color: var(--bg-color1);
}

.service-row {
    display: grid;
    grid-template-rows: repeat(1, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--bg-color2);
    cursor: pointer;
    border-radius: 5px;
    padding: 40px 35px;
    text-align: center;
    transition: 0.3s;
}

.service-card .icon {
    font-size: 2.5rem;
    transition: 0.3s;
    counter-reset: var(--color1);
}


.service-content h6 {
    color: var(--color1);
    transition: 0.3s;
    margin: 1rem 0;
}

.service-content p {
    transition: 0.3s;
    color: var(--color1);
}

.service-card:hover {
    background-color: #525fe1;
    transform: translateY(-10.5px);
}

.service-card:hover .icon,
.service-card:hover h6,
.service-card:hover p {
    color: #FFF;
}
/*========= Style For Project Section ============*/

#projects {
    padding: 60px 0;
    background-color: var(--bg-color2);
}

.filter-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
     
}

/*========= Portfolio Gallery =========*/

.portfolio-wrapper {
    display: flex;
    gap: 15px;
    flex-direction: column;
    margin-top: 30px;
}

.portfolio-wrapper .portfolio-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.portfolio-item.development img {
    border-radius: 5px;
    height: 350px;
}

.portfolio-item.design img {
    border-radius: 5px;
} 

.product-title {
    width: 100%;
    position: absolute;
    bottom: -45px;
    padding: 15px 30px;
    opacity: 0;
    transition: 0.6s;
    text-align: center;
    color: #FFF;
}

.product-title h4,
.product-title p {
    color: #FFF;
}

.portfolio-item:hover .portfolio-item-content {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover .product-title {
    bottom: 30%;
    opacity: 1;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
}

.portfolio-item.show {
    animation: fadeIn 0.5s ease;
}

.portfolio-item.hide {
    display: none;
}


.portfolio-item-content {
    position: absolute;
    left: 25px;
    top: 25px;
    right: 25px;
    bottom: 25px;
    background-color: rgba(16, 16, 16, .5);
    transition: 0.5s;
    transform: scale(1.15);
    opacity: 0;
}

/*========= Style For Contact Section =============*/

#contact {
    background-color: var(--bg-color1);
    padding: 60px 0;
}

/*======== Style For Contact General ==========*/

.contact-general {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    text-align: center;
}

.content-card .icon i {
    font-size: 2.5rem;
    color: var(--color1);
}

.sw-icon {
    height: 80%;
    width: 80%;
    fill: var(--color1);
}

.contact-content {
    margin-top: 20px;
}

.contact-content h5 {
    font-size: 1rem;
    color: var(--color1);
    font-weight: 500;
}

.icon {
    color: var(--color1);
}

.contact-content span {
    color: var(--color1);
}

/* ======= Style For Contact Form ======== */

#contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact-form label {
    margin-bottom: 5px;
    color: var(--color1);
}

.name-email {
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    width: 100%;
}

.input-control,
.contact-msg {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background-color: #f6f6f9;
    border: 1.5px solid #f6f6f9;
    border-radius: 5px;
    color: #3e4455;
    height: 50px;
    line-height: 56px;
    outline: 0;
    padding: 0 30px;
    width: 100%;
    font-weight: 500;
    box-shadow: 5px 5px 10px rgba(32, 59, 71, 0.5);
}

.contact-msg {
    height: 150px;
    line-height: 1.2;
    padding: 20px 30px;
    resize: none;
}

.input-subject,
.form-submit {
    width: 100%;
    margin-bottom: 1rem;
}

.btn-submit {
    display: grid;
    position: relative;
    left: 35%;
    align-items: center;
    justify-content: center;
    place-items: center;
    position: relative;
    cursor: pointer;
    padding: 10px 50px;
    border-radius: 10px;
    border: 5px solid var(--clr-neon);
    background-color: var(--bg-color1);
    color: var(--clr-neon);
    box-shadow: 0 0 20px var(--clr-neon);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--clr-neon);
    font-size: 18px;
    transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
    background-color: var(--clr-neon);
    color: white;
    text-shadow: 0 0 10px white;
    box-shadow: 0 0 60px var(--clr-neon);
}

.btn-submit::before {
    content: "";
    position: absolute;
    top: 140%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--clr-neon);
    transform: 
        perspective(0.2em)
        rotateX(10deg)
        scale(1.3, 0.40);
        filter: blur(0.5em)
        opacity(0.6);
        transition: all 0.3 ease-in-out;
}

.btn-submit:hover::before {
    opacity: 100%;
}

/* ========= Message After Form Submission =======*/

.loader {
    width: 100%;
    padding: 10px;
    background-color: #3d4145;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.loader.show {
    display: block;
}

.loader i {
    animation: rotateme .4s linear infinite;
    color: var(--color2);
}

/*============ Loader animation =========*/

@keyframes rotateme {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-message {
    display: none;
    width: 100%;
    background-color: #3d4145;
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
}

.form-message.show {
    display: block;
}

.success-msg {
    color: green;
    line-height: 3;
}

.error-msg {
    color: red;
    line-height: 3;
}

/*======= CSS For Footer Section =========*/

footer {
    background-color: var(--bg-color2);
    pad: 20px 0;
}

.portfolio-row.footer-wrap {
    flex-direction: column;
    align-items: center;
}

.social-icons li {
    display: inline-block;
}

.social-icons li:not(:last-child) {
    margin-right: 0.rem;
    border-right: 1px solid var(--color2);
    padding-right: 0.7rem;
}

.social-icons li a{
    color: var(--color1);
}

.copyright-text {
    display: none;
}
/*---------------- Large devices (desktops, 992px and up)  -----------*/

@media (min-width: 768px) {
    /*======= Responsive Universal CSS Properties =======*/

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3.5rem;
        text-align: unset;
        color: var(--color1);
        font-weight: 600;
    }

    /*========= Header Responsive ===========*/

    header {
        background-color: transparent;
        position: absolute;
        padding: 0 15px;
    }

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

    /*========= About Section Responsive =========*/

    #about {
        padding: 175px 0 150px 0;
    }

    .about-intro {
        width: 60%;
        margin: 0;
        order: 1;
        text-align: unset;
    }

    /*========= About Image Responsive =========*/

    .about-image {
        width: 20%;
        height: 20%;
        order: 2;
    }

    /*========= Slider Responsive =========*/


    /*========= Slider Image Responsive ========*/

    .about-image {
        width: 40%;
        order: 2;
    }

    /*========= Resume Intro Responsive ========*/

    .resume-intro {
        width: 50%;
        padding-right: 6.25rem;
    }

    .resume-body {
        width: 50%;
        margin-top: 0;
        min-height: 400px;
    }

    .resume-body h2 {
        display: none;
    }

    .resume-heading {
        padding: 20px 0;
    }


    /*========= Resume Body Responsive ========*/

    .btn {
        padding: 0 25px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .qualification-content::after {
        left: -2px;
    }

    .qualification-content::before {
        left: 0;
    }

    .bar-content {
        margin-bottom: 0;
    }

    /*========== Services Responsive =========*/

    .service-row {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ========= Projects Responsive =========== */

    .portfolio-wrapper {
        flex-direction: row;
    }

    /*======= Portfolio Gallery Responsive =====*/


    /*============ Contact General Responsive ==========*/

    .contact-general {
        grid-template-columns: repeat(3,1fr);
        margin: 4rem 0;
    }

    .contact-general h2 {
        display: none;
    }

    .contact-card:nth-of-type(2) {
        border-left: 1px solid #d9d9d9;
        border-right: 1px solid #d9d9d9;
    }
    /* ======= Contact Form Responsive ======== */

    #contact-form {
        margin: 2rem auto;
        width: 80%;
        display: flex;
        justify-content: center;
    }

    /* ======= Footer Responsive ======== */

    .portfolio-row.footer-wrap {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;        
    }

    .copyright-text {
        display: block;
    }

    /*========== Theme Icon Color When Nabar Sticky ========*/

    .theme-toggle {
        background: none;
        position: static;
        transform: none;
    }

    body:not(.dark) .header-sticky .theme-toggle .lni-night,
    body.dark .header-sticky .theme-toggle .lni-sun {
        color: #3e4455;
    }

    body:not(.dark) .theme-toggle .lni-night,
    body.dark .theme-toggle .lni-sun {
        color: var(--color2);
    }
}