@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

:root{
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --main-bg-color: #7cf03d;
    --white-color: #fff;
    --disabled-color:#fff3;
}

html{
    font-size: 62.5%;
}


body {
    color: var(--white-color);
}
body::-webkit-scrollbar {
    width: .7rem;
    display: none;
    color: var(--bg-color);
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
}
header.active{
    animation: show-header 1.5s linear forwards;
    animation-delay: .5s;
}

@keyframes show-header{
    100%{
        visibility: visible;
        opacity: 1;
    }
}

.logo{
    font-size: 3rem;
    color: var(--white-color);
    font-weight: 700;
}

nav a {
    font-size: 2rem;
    color: var(--white-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .5s;
}

nav a:hover,
nav a.active{
    color: var(--main-bg-color);
    
}

#menu-icon{
    font-size: 4rem;
    display: none;
}

.bars-box{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.bars-box .bar{
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    
}

@keyframes hide-bars{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(-100%);
    }
}

.bars-box.active .bar{
    animation: show-bars .3s ease-in both;
    animation-delay: calc(.1s * var(--i));
}

@keyframes show-bars{
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(0);
    }
}

section {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 10rem 9% 8rem; /* Changed from 2rem to 8rem bottom padding */
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

section.active{
    animation: show-content 1s linear forwards;
    animation-delay: 1s;
}

@keyframes show-content{
    100%{
        visibility: visible;
        opacity: 1;
        overflow: auto;
    }
}

.home{
    display: flex;
    align-items: center;
    gap: 5rem;
}

.home-detail h1{
    font-size: clamp(3.5rem, 10vw, 5.5rem);
}

.home-detail h2{
    display: inline-block;
    font-size: 3.2rem;
    margin-top: -1rem;
}

.home-detail h2 span{
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .07rem var(--main-bg-color);
    
    animation-delay: calc(-4s * var(--i));
}

@keyframes display-text{
    25%, 100%{
        display: none;
    }
}

.home-detail h2 span::before{
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: .2rem solid var(--main-bg-color);
    color: var(--main-bg-color);
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%, 
    100%{
        width: 0;
    }

    70%,
     90%{
        width: 100%;
    }
}

.home-detail p{
    font-size: 1.6rem;
    margin: 1rem 0 2.5rem;
}

.home-detail .btn-sci{
    display: flex;
    align-items: center;
}

.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-bg-color);
    border: .2rem solid var(--main-bg-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-bg-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    transition: .5s;
}

.btn:hover {
    background: transparent;
    color: var(--main-bg-color);
    box-shadow: none;
}

.home-detail .btn-sci .sci {
    margin-left: 2rem;

}

.home-detail .btn-sci .sci a {
    display: inline-flex;
    padding: .8rem;
    border:.2rem solid var(--main-bg-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-bg-color);
    margin: 0 .8rem;
    transition: .5s;
}

.home-detail .btn-sci .sci a:hover{
    background: var(--main-bg-color);
    color: var(--bg-color);
    box-shadow: 0 0 1rem var(--main-bg-color);
}

.home-img .img-box {
    position: relative;
    width: 28vw;
    height: 28vw;
    border-radius: 50%;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: "";
    position: absolute;
    width: 120rem;
    height: 120rem;
    background: conic-gradient(transparent, transparent, transparent, var(--main-bg-color));
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after{
    animation-delay: -5s;
}

@keyframes rotate-border {
    100%{
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 50%;
    border: .01rem solid var(--bg-color);
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    
    top: 0rem;
    display: block;
    width: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.heading{
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.heading span{
    color: var(--main-bg-color);
}

.services-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
}

.services-container .services-box{
    padding: 2rem 2.5rem ;
    background: var(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    border-radius: 1rem;
    transition: .5s;
}

.services-container .services-box:hover{
    border-color: var(--main-bg-color);
    transform: scale(1.02);
}

.services-box .icon{
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.services-box .icon i {
    font-size: 4.5rem;
    transition: .5s;
}

.services-box:hover .icon :not(a i){
    color: var(--main-bg-color);
}

.services-box .icon a {
    display: inline-flex;
    background: var(--white-color);
    border-radius: 50%;
    padding: 1rem;
    transition: .5s;

}

.services-box:hover .icon a{
    background: var(--main-bg-color);
}

.services-box .icon a i{
    font-size: 3rem;
    color: var(--bg-color);
    transform: rotate(225deg);
}

.services-box .icon a:hover i{
    transform: rotate(180deg);
}

.services-box h3{
    font-size: 3rem;
    margin: .5rem 0 2rem;
    transition: .5s;
}

.services-box:hover h3{
    color: var(--main-bg-color);
}

.services-box p{
    font-size: 1.6rem;
}

.resume-container{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.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(--second-bg-color);
    border: .2rem solid var(--second-bg-color);
    font-size: 1.6rem;
    color: var(--white-color);
    font-weight: 500;
    margin-bottom: 2rem;
    border-radius: .8rem;
    cursor: pointer;
}

.resume-box .resume-btn.active{
    border-color: var(--main-bg-color);
    color: var(--main-bg-color);
}

.resume-detail{
    display: none;
}

.resume-detail.active{
    display: block;
    
}

.resume-box .heading{
    font-size: 3.5rem;
    text-align: left;
}

.resume-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.6rem;
    height: 50rem;
    overflow: auto;
}

.resume-list::-webkit-scrollbar{
    width: .7rem;
}

.resume-list::-webkit-scrollbar-thumb{
    background: transparent;
    border-radius: 1rem;
}

.resume-list:hover::-webkit-scrollbar-thumb{
    background: var(--main-bg-color);
}

.resume-list .resume-item{
    background: var(--second-bg-color);
    border-radius: .8rem;
    padding: 3rem 2.5rem;
    height: calc((45rem - 1.8rem) / 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resume-item .year{
    color: var(--main-bg-color);
}

.resume-item h3{
    font-size: 2rem;
}

.resume-item p{
    font-size: 1.5rem;
}

.resume-item .company{
    position: relative;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.resume-item .company::before{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    background: var(--main-bg-color);
    border-radius: 50%;
    margin-left: -2rem;  
}

/*Blue dot for experience alone (Company) start*/
.resume-item .companys{
    position: relative;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.resume-item .companys::before{
    content: '';
    position: absolute;
    top: 18%;
    transform: translateY(-50%);
    padding: .5rem;
    background: var(--main-bg-color);
    border-radius: 50%;
    margin-left: -2rem;  
}

/*Blue dot for experience alone (Company) end*/

.resume-detail.skills .resume-list{
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    height: auto;
    overflow:  visible;
}

.resume-detail.skills .resume-item{
    position: relative;
    align-items: center;
    height: auto;
}

.resume-detail.skills .resume-item i {
    font-size: 8.5rem;
    transition: .5s;
}

.resume-detail.skills .resume-item:hover i {
    color: var(--main-bg-color);
}

.resume-detail.skills .resume-item span{
    position: absolute;
    top: -20%;
    background: var(--white-color);
    color: var(--bg-color);
    font-size: 1.6rem;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    opacity: 0;
    transform: scale(.9);
    transition: .2s;
}

.resume-detail.skills .resume-item:hover span{
    top: -25%;
    opacity: 1;
    transform: scale(1);
}

.resume-detail.about .resume-list{
    height: 40rem;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.resume-detail.about .resume-item{
    height: auto;
    padding: 0 0 .5rem;
    background: transparent;
}

.resume-detail.about .resume-item p{
    color: var(--main-bg-color);
}

.resume-detail.about .resume-item p span{
    color: var(--white-color);
    margin-left: 1rem;
    font-size: 1.7rem;
}

/* Portfolio Css*/
.portfolio-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.portfolio-detail{
    display: none;
}

.portfolio-detail.active{
    display: block;
}

.portfolio-box .numb{
    font-size: 8rem;
    -webkit-text-stroke: .07rem var(--white-color);
    color: transparent;
    line-height: 1;
}

.portfolio-box h3{
    font-size: 3.5rem;
    margin: .8rem 0 2rem;
}

.portfolio-box p{
    font-size: 1.6rem;
}

.portfolio-box .tech{
    margin: 2rem 0;
    color: var(--main-bg-color);
    border-bottom: .1rem solid var(--white-color);
    padding-bottom: 2rem;
}

.portfolio-box .live-github a {
    position: relative;
    display: inline-flex;
    padding: 1.3rem;
    font-size: 3rem;
    color: var(--white-color);
    border-radius: 50%;
    background: var(--second-bg-color);
    transition: .5s;
}

.portfolio-box .live-github a:hover{
    color: var(--main-bg-color);  
}

.portfolio-box .live-github a:first-child{
    margin-right: 1.5rem;
}

.portfolio-box .live-github a:first-child i{
    transform: rotate(135deg);
}

.portfolio-box .live-github a span{
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: white;
    color: var(--bg-color);
    opacity: 0;
    transition: .2s;
}

.portfolio-box .live-github a:hover span{
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);

}

.portfolio-box .portfolio-carousel{
    width: 100%;
    height: 45rem;
    border-radius: 1rem;
    overflow: hidden;
}

.portfolio-carousel .img-slide{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 2rem;  
    height: inherit;
    transition: .5s;
    /*transition: transform 0.5s ease-in-out;*/
}

.portfolio-carousel .img-item{
    height: inherit;
}

.portfolio-carousel .img-item img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 1rem;
}

.portfolio-box .navigation{
    text-align: right;
    margin-top: 2rem;
}

.portfolio-box .navigation button {
    display: inline-flex;
    padding: .4rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-bg-color);
    border-radius: .6rem;
    font-size: 4rem;
    color: var(--main-bg-color);
    cursor: pointer;
}

.portfolio-box .navigation button.disabled{
    border-color: var(--second-bg-color);
    color: var(--disabled-color);
}

.portfolio-box .navigation .arrow-right{
    margin-left: 1.5rem;
}


/* Add padding BETWEEN each column (if you want) */
.row,
.row > .column {
  padding: 9px;
}

/* Create four equal columns that floats next to each other */
.column {
  float: left;
  width: 30%;
  height: 30%;
  
}

/* Clear floats after rows */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Content */
.content {
  background-color: var(--second-bg-color);
  padding: 10px;
  border-radius: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));

}

.content h1{
    font-size: 2rem;
    padding: 2px;
    color: var(--main-bg-color);
}

.content p {
    font-size: 1.5rem;
}

.content .img{
    border-radius: 1rem;
}

.content .live-github a {
    position: relative;
    display: inline-flex;
    padding: 1.3rem;
    font-size: 3rem;
    color: var(--white-color);
    border-radius: 50%;
    background: var(--second-bg-color);
    transition: .5s;
}

.content .live-github a:hover{
    color: var(--main-bg-color);  
}

.content .live-github a:first-child{
    margin-right: 1.5rem;
}

.content .live-github a:first-child i{
    transform: rotate(135deg);
}

.content .live-github a span{
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%) scale(.9);
    font-size: 1.6rem;
    white-space: nowrap;
    padding: .5rem 1rem;
    border-radius: .6rem;
    pointer-events: none;
    background: white;
    color: var(--bg-color);
    opacity: 0;
    transition: .2s;
}

.content .live-github a:hover span{
    top: -70%;
    opacity: 1;
    transform: translateX(-50%) scale(1);

}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 900px) {
    .column {
      width: 50%;
    }
}  

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}

/* Contact Css*/
.contact-container{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
}

.contact-container .contact-box:first-child{
    align-self: center;
}

.contact-box h2{
    font-size: 4.5rem;
}

.contact-box p{
    font-size: 1.6rem;
}

.contact-box .desc{
    margin: 1.5rem 0 2.5rem;
}

.contact-box .contact-detail{
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.contact-detail i{
    display: inline-flex;
    background: var(--second-bg-color);
    color: var(--main-bg-color);
    font-size: 3rem;
    padding: 1.2rem;
    border-radius: .6rem;
    margin-left: 1.5rem;
}

.contact-detail .detail p:first-child{
    color: var(--main-bg-color);
}

.contact-box form{
    background: var(--second-bg-color);
    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: repeat(2, 1fr);
    gap: 2rem;
}

.contact-box .field-box input,
.contact-box .field-box textarea{
    padding: 1.5rem;
    background: var(--bg-color);
    border: .15rem solid var(--bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
}

.contact-box .field-box textarea{
    grid-column: 1 / -1;
    height: 26rem;
    resize: none;
}

.contact-box .field-box input:focus,
.contact-box .field-box textarea:focus{
    border-color: var(--main-bg-color);
}

.contact-box .btn{
    margin-top: 2rem;
    cursor: pointer;
}

/* Footer*/
footer {
    position: fixed; /* Pin the footer to the bottom of the screen */ 
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--second-bg-color); 
    padding: 2rem 9%;
    z-index: 100; 
    text-align: center; 
    font-size: 1.6rem;
}


/* Breakpoints*/

@media screen and (max-width: 1200px) {
    html{
        font-size: 55%;
    }
    
}

@media screen and (max-width: 992px) {
    header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }
    
}

@media screen and (max-width: 810px) {
    .contact-box .field-box {
        grid-template-columns: 1fr;
    }
    
}

@media screen and (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    
    nav{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        text-align: center;
        display: none;
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        margin: 18rem 0;
    }

    .home{
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
    }

    .home-img .img-box{
        width: 35rem;
        height: 35rem;
    }

    .resume-container,
    .contact-container{
        grid-template-columns: 1fr;
    }

    .resume-container{
        gap: 3rem;
    }

    .contact-box .field-box{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px){
    .home-img .img-box{
        width: 30rem;
        height: 30rem;
    }

    .contact-box .field-box{
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 450px){
    html{
        font-size: 50%;
        
    }
}

@media screen and (max-width: 400px) {
    .home-detail,
    .resume-box h2,
    .resume-box .heading,
    .resume-box .desc,
    .resume-detail.about .resume-item{
        text-align: center;
    }

    .home-detail .btn-sci{
        flex-direction: column-reverse;
    }

    .home-detail .btn-sci .sci{
        margin: 0;
        margin-bottom: 2rem;
    }

    .contact-box form{
        padding: 2.5rem 3rem 3.5rem;
    }

    .contact-box h2{
        font-size: 3.5rem;
    }
}

/* Chatbot CSS */
.chatbot-container {
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 1000;
}

.chatbot-icon {
    background: linear-gradient(145deg, #1e3a5f, #0c273d);
    color: #0ff0fc;
    font-size: 24px;
    border-radius: 30%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0px 4px 15px rgba(0, 255, 255, 0.5);
    animation: pulse 1.5s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 340px;
    height: 370px;
    background: rgba(46, 46, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    box-shadow: var(--main-bg-color);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

.chatbot-header {
    background: var(--main-bg-color);
    color: black;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    text-transform: uppercase;
}

.chatbot-body {
    flex: 1;
    padding: 10px;
    background-color:var(--second-bg-color);
    overflow-y: auto;
    color: #2980b9;
    font-size: 14px;
    line-height: 1.6;
}

.chatbot-footer {
   background: var(--main-bg-color);
    display: flex;
    padding: 10px;
    gap: 5px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.chatbot-footer input {
    flex: 1;
    padding: 8px;
   /* background-color: #1e1e1e;*/
   background: var(--second-bg-color);
    color: #2980b9;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    outline: none;
}

/* Updated button styles for futuristic look */
.chatbot-footer button {
    background: linear-gradient(145deg, #1e3a5f, #0c273d);
    color: #0ff0fc; /* Bright cyan color for text */
    border: none; /* No border */
    border-radius: 25px; /* More rounded corners */
    padding: 10px 20px; /* More padding */
    font-weight: bold; /* Bold text */
    font-size: 14px; /* Font size */
    cursor: pointer; /* Pointer on hover */
    transition: transform 0.2s, box-shadow 0.3s; /* Smooth transitions */
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5); /* Shadow for depth */
}

.chatbot-footer button:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.7); /* Enhanced shadow on hover */
   /* background: linear-gradient(145deg, #0c273d, #1e3a5f); /* Reverse gradient */
   background: var(--second-bg-color);
}

/* Close button styles */
.close-btn {
    background: none;
    border: none;
    color: #2980b9;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ff0033;
}

.chatbot-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
    word-wrap: break-word;

}

/* User messages on the right */
.chatbot-message.user {
    background-color: #0ff0fc;
    color: #2e2e2e;
    align-self: flex-end;
    border-radius: 10px 10px 0 10px;
}

/* Bot messages on the left */
.chatbot-message.bot {
    background-color: #2980b9;
    color: rgb(18, 18, 18);
    align-self: flex-start;
    border-radius: 10px 10px 10px 0;
}

.typing-indicator {
    color: #cccccc;
    font-style: italic;
    margin: 5px;
}

.chatbot-gif {
    width: 100px; 
    height: 100px; 
    object-fit: contain; 
    margin-bottom: 10px;
    
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5); }
    50% { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0, 255, 255, 0.7); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 255, 255, 0.5); }
}



