/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

}

/* #experiencePage{
    display: none;
} */

#projectbtn {
    position: relative;
}

#moreOptions {
    display: none;
    position: absolute;
    top: 100%; /* Position below the label */
    left: 0;
    min-width: 160px;
    background-color: #f9f9f9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#moreOptions option {
    padding: 10px;
    color: black;
    cursor: pointer;
}

@media (max-width: 768px) {
    #projectbtn {
        width: 100%;
    }

    #moreOptions {
        position: relative;
        display: block;
        width: 100%;
    }
}
body {
    overflow-x: hidden;
}
/* ----- BASE ----- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* outline: 1px solid red; */
}
/* smooth scrolling  */
html{
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* scroll design  */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}
/* gloabl btn design  */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
    text-decoration: none;
    color: rgb(57, 57, 57);    
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
    font-size: 1.05rem;
    box-shadow:  5px 5px 15px rgba(19, 171, 241, 0.7);
}
/* Gloabal icon design  */
i{
    font-size: 16px;
}
/* basic body color  */
body{
    background: var(--body-color);
}
.container{
    width: 100%;
    position: relative;
}
/* navigation bar  */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline:  10%;
    transition: .3s;
    z-index: 100;
    /* overflow: hidden; */
}
.nav-logo{
   position: relative;
}
.nav-name a{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
    text-decoration: none;
}
.nav-logo span{
    position: absolute;
    top: -15px; 
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
/* new code  */
#homebtn , #aboutbtn , #edbtn , #projectbtn , #contactbtn{
    opacity: 0;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;    
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 5px;
    margin-inline: 5px;       
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}
/* wrppr design  */
.wrapper{
    padding-inline: 10vw;
}
.featured-box{
    position: relative;
    display: flex;
    /* height: 100vh; */
    height: 90vh;
    min-height: 600px;
}
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}
.featured-text-card span1{
    font-size: 20px;
    font-weight: 500;
    color: rgb(71, 65, 65);
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn a{
    text-decoration: none;    
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 1.5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    /* color: var(--first-color); */
    color: rgb(3, 3, 211);
    box-shadow: 10px 10px 30px rgba(1, 146, 250, 0.8);    
}
.icon:hover i{
    font-size: 1.5em; /* Adjust the size as needed */
    transition: font-size 0.3s ease-in-out ;   
}
.featured-image{
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}
.featured-image video{
    object-fit: fill;
    width: 100%;
    height: 100%;
}
.image{
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 7s ease-in-out infinite;
}
.image img{
    width: 380px;
    height: 380px;
    object-fit: cover;
}
@keyframes imgFloat {
    50%{
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn:hover{
    box-shadow:  5px 5px 15px rgba(19, 171, 241, 0.7);
}
.scroll-btn i{
    font-size: 20px;
}

.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: center;
    font-size: 15px;
    color: #777;
}
.about-btn a{
    position: absolute;
    text-decoration: none;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn a:hover{
    background: var(--first-color-hover);
}
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 30px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}
.project-container{
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    
}
.project-section1{
    display: flex;
    flex-direction: column;
  justify-content: center; /* Horizontally center */
  align-items: center;     /* Vertically center */
     width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;


}

.project-box{
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.project-box1{
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    width: 15%;
    height: 150px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
video {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.project-section1 p{
    padding: 30px;
}
.project-section1 #h_line{
    font-size: 18px;
    font-weight: 400;
}
  
.project-box img{
    height: 100px;
    width: 100px;
}
.project-box label a i{
    color: rgb(73, 75, 84);
    margin: 10px;    
     font-size: 28px;    
}
.project-box a img{
    width: 20%;
    height: auto;
    margin: 30px;
    position: relative;
    z-index: 2;
}
.project-box label a img{
    height: 30px;
    width: 30px;
}
.project-box label a img:hover{
    font-size: 1.05rem;
}
.education-box{
    position: relative;
    display: flex;    
    flex-direction: column;
    width: 30%;
    height: 400px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.education-box i{
    margin:10px;
    font-size: 25px;
}
.education-box h3{
    margin-left: 10px;
}
.education-box p{
    margin:5px;
    padding: 8px;
}
.project-box>i{
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: #777;
}
.project-box::after, .contact-info::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
/* new code  */
.education-box::after{
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}
.project-box:hover.project-box::after,
.education-box:hover.education-box::after,  /* new line */
.contact-info:hover.contact-info::after{
    bottom: 0;
}
.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label{
    color: var(--color-white);
    z-index: 2;
}
/* new code here  */
.education-box:hover.education-box i,
.education-box:hover.education-box>h3,
.education-box:hover.education-box>p
{
    color: var(--color-white);
    z-index: 2;
}
/* new code  */

.time-line{
    position: relative;
    max-width: 1200px;
    margin: 100px auto; 
}

 .time-line::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background-color: #ffffff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    
    animation:  moveLine 5s linear forwards;    
 
 }

@keyframes moveLine{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
} 

.containerExp{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    /* animation:  moveDown 1.2s linear forwards ; */
    /* opacity: 0; */
}
.containerExp img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}
.right-containerExp img{
    left: -20px;
}

 @keyframes moveDown{
    0%{
        opacity: 0;
        transform: translateY(-50px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
} 
.text-box{
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    flex-direction: column;
    padding: 20px 30px;
    background: #fff;
    position: relative;    
    border-radius: 6px;
    font-size: 15px;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.text-box::after{
    content: "";
        position: absolute;
        bottom: -100%;
        background: var(--second-color);
        width: 100%;
        height: 100%;
        transition: .4s;
        z-index: 1;
} 
.text-box:hover.text-box::after{
    bottom: 0;
}
.text-box:hover.text-box h2,
.text-box:hover.text-box>small,
.text-box:hover.text-box>p{
    color: var(--color-white);
    z-index: 2;
}  
.left-containerExp{
    left: 0;
}
.right-containerExp{
    left: 50%;
}
.containerExp img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}
.right-containerExp img{
    left: -20px;
}
.time-line::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    /* background-color: #fff; */
    background-color: var(--text-color-third);
    top: 0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
    /* animation:  moveLine 4s linear forwards;     */
}
.animate-now{
    animation:  moveLine 4s linear forwards;

}

@keyframes moveLine{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}
.text-box h2{
    font-weight: 600 ;
}
.text-box small{
    display: inline-block;
    margin-bottom: 15px;     
}
.leftContainer-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff ;
    right: -15px;
}
.rightContainer-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #fff ;
    left: -14px;
}
@media screen and (max-width: 600px){
    .time-line{
        margin: 50px auto;
    }
    .time-line::after{
        left:31px;
    }
    .containerExp{
        /* width may be adjusted acc to content  */
        width: 110%;  
        padding-left: 80px;
        padding-right: 25px;
    }
    .text-box{
        font-size: 13px;
    }
    .text-box small{
        margin-bottom: 10px;
    }
    .right-containerExp{
        left: 0;
    }
    .left-containerExp img , .right-containerExp img{
        left: 10px;
    }
    .leftContainer-arrow , .rightContainer-arrow{
        border-right: 15px solid #fff;
        border-left: 0;
        left: -15px;
    }
}
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}
.contact-info>h2{
    color: var(--color-white);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}
.contact-info p a{
    text-decoration: none;
    color: #777;
}
.contact-info p a:hover{
    color: #00B5E7;
}
.contact-info p i{
    font-size: 25px;
    /* text-decoration: none; */
}
.contact-info::after{
    background: var(--color-white);
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: #00B5E7;
    font-size: 1.05rem;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}
/* footer  */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 15px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}
/* Ensuring all elements respect box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes SlideButton{
    0%{
        transform: translateX(200px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
.nav_menu_list #homebtn ,#aboutbtn ,  #edbtn , #projectbtn , #contactbtn{
    animation: SlideButton 1s ease forwards;
}

.bottom-footer{
    position: relative;
 }
.bottom-footer .countbox{
    display: flex;
    justify-content: center;
    align-items: center;
    /* position: fixed; */
    bottom: 0;
    height: 30px;
    width: 100%;
}