/*  import google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

* {
    font-family: "Poppins", sansserif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    border: none;
    list-style: none;
    text-decoration: none;
    outline: none;
}

:root {
    --bg-color: #1f242d;
    --bg-color-2: #323946;
    /* Manipulating in JS */
    /* --primary-color: #2bdfff; */
    --white-color: #fff;
    --disabled-color: #fff3;
}


html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--white-color);
    -webkit-text-size-adjust: none;
    /* Prevent Chrome from auto-scaling text */
    text-size-adjust: none;
    /* For other browsers */
}


span.change-clr {
    color: var(--primary-color);
}

h2.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.4rem;
}

h2.heading span {
    color: var(--primary-color);
}

/*!---------------------------------------------------------------------------------------------------------------*/
/*!-------------------------------------------------HEADER--------------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/



/* ! Color changer of the page  */
/* home image and color option is in flex */
.home-img {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    margin-left: 3.6rem;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.3;
    transition: .5s;
}

.color-circle:hover {
    opacity: 1;
}

.circle-1 {
    background-color: #00ff7f;
}

.circle-2 {
    background-color: #ff9900;
}

.circle-3 {
    background-color: #ffff00;
}

.circle-4 {
    background-color: #00ff00;
}

.circle-5 {
    background-color: #2bdfff;
}

/* ! starting of Header  */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.6rem 4rem;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: .3rem solid var(--primary-color);
}

.logo {
    font-size: 2.4rem;
    color: var(--white-color);
    font-weight: 700;
    letter-spacing: .5rem;
}

.logo span {
    color: var(--primary-color);
}

nav a {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 3.2rem;
    transition: all 0.5s;
}


nav a:hover,
nav a.active {
    color: var(--primary-color);
}

#menu-icon {
    font-size: 3.6rem;
    display: none;
}


/*!---------------------------------------------------------------------------------------------------------------*/
/*!---------------------------------------------------Home detail Section------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/
section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 7% 2rem;
    background: var(--bg-color);
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all .5s ease-in-out;
}

section.active {
    visibility: visible;
    opacity: 1;
    overflow: hidden;
}

/*!-----------home-detail section : h1, h2, p -----------  */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4.8rem;
}

.home-detail h1 {
    font-size: 5rem;
    letter-spacing: .5rem;
}

.home-detail .small-heading {
    display: inline-block;
    font-size: 2.4rem;
    font-weight: 100;
    color: var(--primary-color);
    letter-spacing: 0.2rem;
}

.home-detail h2 {
    display: inline-block;
    font-size: 3rem;
    font-weight: 600;
}

.home-detail p {
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem 0;
    color: var(--white-color);
    line-height: 1.5;
    opacity: 0.8;
    word-spacing: 0.2rem;
}

.text-typing {
    font-size: 4rem;
    margin: .5rem 0;
}

.text-typing span {
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: .5rem;
}


/*!-----------GENERAL CSS for .btn class-----------  */
.btn {
    display: inline-block;
    padding: 1rem 3rem;

    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;

    background-color: var(--primary-color);
    border: .2rem solid var(--primary-color);
    box-shadow: 0 0 1rem var(--primary-color);
    border-radius: 4rem;
    transition: all .3s linear;

}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}



/*!-----------home-detail social profiles section-----------  */
.home-detail .btn-sci {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    text-shadow: none;
}

.home-detail .btn-sci .sci {
    margin-left: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.home-detail .btn-sci .sci a {
    display: flex;
    align-items: center;
    justify-content: center;

    /* margin: 0 1rem; */
    padding: 1rem;
    font-size: 2.4rem;
    border-radius: 50%;
    color: var(--primary-color);
    border: .2rem solid var(--primary-color);
    transition: all .3s linear;
    background-color: var(--bg-color);
}

.home-detail .btn-sci .sci a:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--primary-color);
}

/*!---------------------------------------------------------------------------------------------------------------*/
/*!--------------------------------home-img section with rotating animation------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/


/* Circular container for the image and animations */
.home-img .img-box {
    position: relative;
    /* Makes it a containing block for absolutely positioned elements */
    width: 32vw;
    /* Sets width relative to viewport */
    height: 32vw;
    /* Ensures it's a perfect circle */
    border-radius: 50%;
    /* Makes the shape circular */
    padding: 1rem;
    /* Adds spacing inside the container */
    display: flex;
    /* Enables flexbox for centering */
    justify-content: center;
    /* Centers child elements horizontally */
    align-items: center;
    /* Centers child elements vertically */
    overflow: hidden;
    /* Ensures content stays within the circular boundary */
}

/* Rotating border layers */
.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    /* Creates an empty pseudo-element */
    position: absolute;
    /* Positions it relative to .img-box */
    width: 50rem;
    /* Diameter of the border */
    height: 50rem;
    /* Matches width for a perfect circle */
    background: conic-gradient(transparent, transparent, transparent, var(--primary-color));
    /* Gradient for the border */
    animation: rotate-border 10s linear infinite;
    /* Spins the border */
}

/* Second border layer starts at a different time */
.home-img .img-box::after {
    animation-delay: -5s;
    /* Offset to create layered effect */
}

/* Animation for rotating the border */
@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
        /* Completes one full rotation */
    }
}

/* Inner container for the image */
.home-img .img-box .img-item {
    height: 100%;
    /* Matches the height of the parent container */
    background: var(--bg-color);
    /* Background color */
    border-radius: 50%;
    /* Ensures it stays circular */
    display: flex;
    /* Enables flexbox */
    justify-content: center;
    /* Centers the image horizontally */
    z-index: 1;
    /* Places it above the rotating borders */
    overflow: hidden;
    /* Ensures content doesn't overflow */
}

/* Styling for the image */
.home-img .img-box .img-item img {
    border-radius: 50%;
    /* Makes the image circular */
    padding: 2rem;
    /* Adds inner spacing */
    object-fit: cover;
    /* Ensures the image covers its container proportionally */
    mix-blend-mode: lighten;
    /* Blends image with the background for a light effect */
    transition: transform 0.3s;
    /* Smooth scaling animation */
}




/*?  ----------------------------------------------------------------------------------------              */
/*?  Font sizes (rem) : 1 / 1.2 / 1.4 / 1.6 / 1.8 / 2 / 2.4 / 3 / 3.6 / 4.4 / 5.2 / 6.2 / 7.4 / 8.6 / 9.8  */
/*?  ----------------------------------------------------------------------------------------              */
/*?  Spacing system (rem): 0.2 / 0.4 / 0.8 / 1.2 / 1.6 / 2.4 / 3.2 / 4.8 / 5.6 / 6.4 / 8 / 9.6 / 12.8      */
/*?  ----------------------------------------------------------------------------------------              */


/*!---------------------------------------------------------------------------------------------------------------*/
/*!-----------------------------------------------services section------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/




.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
    gap: 2rem;
}

.services-box {
    padding: 2rem 2.5rem;
    background: var(--bg-color-2);
    border: .3rem solid var(--bg-color-2);
    border-radius: 1rem;
    transition: .3s;
}

/* Hover effect */
.services-box:hover {
    border: .3rem solid var(--primary-color);
    box-shadow: 0 0 2rem var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.services-box h3 {
    font-size: 3rem;
    margin: 2rem 0 0.5rem 0;
    transition: .5s;
    color: var(--primary-color);
}

/* .services-box:hover h3 {
} */

.services-box p {
    font-size: 1.6rem;
}

.services-box .icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: .5s;
    color: var(--primary-color);
}

/* .services-box:hover .icon {
} */

.services-box .icon i {
    font-size: 5rem;
}

.services-box .icon a i {
    font-size: 3rem;
    color: var(--bg-color);
    transform: rotate(225deg);
}

.services-box .icon a {
    display: inline-flex;
    background: var(--white-color);
    border-radius: 50%;
    padding: .5rem;
    transition: .5s;
}

.services-box:hover .icon a {
    transform: rotate(-90deg);
    background-color: var(--primary-color);
}


/*!---------------------------------------------------------------------------------------------------------------*/
/*!-----------------------------------------------Resume-section------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/

.resume-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 5rem;
}

.resume-container>.resume-box>h2 {
    font-size: 4.5rem;
}

.resume-box p {
    font-size: 1.6rem;
}

.resume-box .desc {
    margin: 2rem 0 2.5rem;
}

.resume-box .resume-btn {
    width: 100%;
    height: 5.3rem;
    background: var(--bg-color-2);
    border: .2rem solid var(--bg-color-2);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border-radius: .8rem;
    cursor: pointer;
    color: var(--white-color);
    transition: .3s;
}


.resume-box .resume-btn.active {
    border: .3rem solid var(--primary-color);
    box-shadow: inset 0 0 2.5rem var(--primary-color);
    color: var(--white-color);
}


.resume-box .heading {
    font-size: 3.5rem;
    text-align: left;
}

.resume-detail {
    display: none;
}

.resume-detail.active {
    display: block;
}

/*-> ---------------------------------------- */
/*-> EXPERIENCE , EDUCATION SECTION   */
/*-> ---------------------------------------- */
/* .resume-list grid */
.resume-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    height: 45rem;
    /*to make resume items scroll or we can specify overflow:scroll; */
    overflow: auto;
}

/* . editing scrollbar */
.resume-list::-webkit-scrollbar {
    width: .7rem;
}

.resume-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    /* background: transparent; */
    border-radius: 1rem;
}

/* .resume-list:hover::-webkit-scrollbar-thumb {
    background: var(--primary-color);
} */

/*. editing .resume-items */
.resume-list .resume-item {
    background: var(--bg-color-2);
    border-radius: .8rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.resume-detail.education .resume-item,
.resume-detail.experience .resume-item {
    border: .2rem solid var(--bg-color);
    transition: .3s;
}

.resume-detail.education .resume-item:hover,
.resume-detail.experience .resume-item:hover {
    border: .2rem solid var(--primary-color);
}

.resume-item .year {
    color: var(--primary-color);
    font-weight: 500;
}

.resume-detail .resume-item h3 {
    font-size: 2.2rem;
    color: var(--white-color);
}

.resume-detail .resume-item:hover a h3 {
    text-decoration: underline;
}

/*. Creating a beautiful dot with blinking animation : used gpt*/
.resume-item .company {
    color: var(--primary-color);
    margin-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.resume-item .company::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    background: var(--primary-color);
    border-radius: 50%;
    margin-left: -2rem;
    animation: blink 1s infinite ease-in-out;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/*-> -------------------- */
/*-> SKILLS SECTION   */
/*-> -------------------- */

.resume-detail.skills .resume-list {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    /* height: auto; */
    /* overflow: scroll; */
    overflow: auto;
}

.resume-detail.skills .resume-item {
    position: relative;
    align-items: center;
    height: auto;
    border: .3rem solid var(--bg-color);
    transition: 0.5s;
}

.resume-detail.skills .resume-item:hover {
    color: var(--primary-color);
    box-shadow: inset 0 0 2rem var(--primary-color);
    border: .3rem solid var(--primary-color);
}

.resume-detail.skills .resume-item i {
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-size: 8.5rem;
}

/*!showing language name on hover */
.resume-detail.skills .resume-item span {
    position: absolute;
    bottom: 0%;
    right: 0%;
    background-color: var(--primary-color);

    color: var(--bg-color);
    font-size: 1.6rem;
    padding: .5rem;
    pointer-events: none;
    opacity: 0;
    transition: .2s;
}

.resume-detail.skills .resume-item:hover span {
    opacity: 1;
}

/*-> -------------------- */
/*-> About ME SECTION   */
/*-> -------------------- */
.resume-detail.about .resume-list {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    width: 100%;
    overflow: auto;
}

.resume-detail.about .resume-item {
    border: .2rem solid var(--bg-color);
    transition: .3s;
}

.resume-detail.about .resume-item:hover {
    border: .2rem solid var(--primary-color);
}

.resume-detail.about .resume-item p {
    color: var(--primary-color);
    font-weight: 500;
}

.resume-detail.about .resume-item p span {
    color: var(--white-color);
    margin-left: 1rem;
    font-size: 1.6rem;
}

.text-typing-2 span {
    color: var(--primary-color);
    font-weight: 500;
}

/*!---------------------------------------------------------------------------------------------------------------*/
/*!-----------------------------------------------portfolio-section------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/
section.portfolio {
    padding-bottom: 0rem;
}

.portfolio-container {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.portfolio-detail {
    display: none;
}

.portfolio-detail.active {
    display: block;
}



.portfolio-box h3 {
    font-size: 3.5rem;
    margin: .8rem 0 2rem;
}

.portfolio-box h3 span {
    color: var(--primary-color);
}

.portfolio-box p {
    font-size: 1.6rem;
}

.portfolio-box .proj-desc {
    font-size: 1.6rem;
    line-height: 1.5;
}

.portfolio-box .number {
    color: var(--primary-color);
    font-size: 8rem;
    font-weight: 700;
    opacity: 0.5;
    line-height: 1;
}

.portfolio-box .tech {
    margin: 2rem 0;
    padding-bottom: 2rem;
    color: var(--primary-color);
    border-bottom: .1rem solid var(--white-color);
    word-spacing: .6rem;
}


.portfolio-box .live-github a {
    margin-right: 1.5rem;
    position: relative;
    display: inline-flex;
    padding: 1rem;
    font-size: 3.6rem;
    color: var(--white-color);
    border-radius: 50%;
    border: .3rem solid var(--bg-color);
    background: var(--bg-color-2);
    transition: .3s;

}

.portfolio-box .live-github a:hover {
    color: var(--primary-color);
    border: .3rem solid var(--primary-color);
    box-shadow: 0 0 1rem var(--primary-color);
}

/*. tooltip for -> live website and github */
.portfolio-box .live-github a span {
    position: absolute;
    /*  */
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: var(--white-color);
    color: var(--bg-color);
    opacity: 0;
    scale: .9;
    transition: .2s;
}

.portfolio-box .live-github a:hover span {
    top: -70%;
    opacity: 1;
    scale: 1;
}

/* !------ Images Carrousal Using Pure CSS3------ */
.portfolio-box .portfolio-carousel {
    width: 100%;
    height: 42rem;
    border-radius: 1rem;
    /* for images not to overflow */
    overflow: hidden;
}

.portfolio-carousel .img-slide {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;
    height: inherit;
    transition: .5s;
}


.portfolio-carousel .img-item {
    height: inherit;

}

.portfolio-carousel .img-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

/* !carrousal navigation buttons */
.portfolio-box .navigation {
    text-align: center;
    margin-top: 1.4rem;
}

.portfolio-box .navigation .arrow-right {
    margin-left: 2rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: .4rem;
    border-radius: .6rem;
    font-size: 4rem;
    background: var(--bg-color-2);
    border: .2rem solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.portfolio-box .navigation button:hover {
    box-shadow: 0 0 2rem var(--primary-color);
}


/*!---------------------------------------------------------------------------------------------------------------*/
/*!-----------------------------------------------contact-section------------------------------------------------*/
/*!---------------------------------------------------------------------------------------------------------------*/

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

/* .!contact details styling */

.contact-container .contact-box:first-child {
    align-self: center;
}

.contact-box h2 {
    font-size: 4.5rem;
}

.contact-box h2 span {
    color: var(--primary-color);
}

.contact-box p {
    font-size: 1.6rem;
}

.contact-box .desc {
    margin: 1.5rem 0 6rem;
}

.contact-box .contact-detail {
    display: flex;
    align-items: center;
    margin: 3rem 0;
}

.contact-box .contact-detail p {
    font-size: 1.8rem;
}

.contact-box .contact-detail i {
    display: inline-flex;
    background-color: var(--bg-color-2);
    color: var(--primary-color);
    font-size: 3.6rem;
    padding: 1rem;
    border-radius: 1rem;
    margin-right: 1.5rem;
    border: .2rem solid var(--primary-color);
}

.contact-detail .detail p:first-child {
    color: var(--primary-color);
}



/* .!contact FORM styling */
.contact-box form {
    background-color: var(--bg-color-2);
    padding: 2.5rem 3.5rem 3.5rem;
    border-radius: 1rem;
    text-align: center;
}

.contact-box .heading {
    font-size: 3.5rem;
}

.contact-box .field-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea {
    padding: 1.5rem;
    background-color: var(--bg-color);
    border: .3rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
    transition: .3s;
}

.contact-box .field-box textarea {
    grid-column: 1/-1;
    height: 15rem;
    resize: none;
    /* min-width: 100%;
    max-width: fit-content; */
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus {
    border: .3rem solid var(--primary-color);
    box-shadow: 0 0 1.5rem var(--primary-color);
}

.contact-box .btn {
    margin-top: 2.5rem;
    cursor: pointer;
}