@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
/* Tools & Frameworks Section */
/* Projects Section */
/* More Projects Button */
/* More Projects Button (Centered Below) */
/* Projects Section */

.projects-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* More Projects Button (Centered Below) */
.more-projects {
    width: 100%; /* Ensures it takes full width */
    text-align: center;
    margin-top: 1rem;
}

.more-projects .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    background-color: var(--main-color);
    color: #112240;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.more-projects .btn:hover {
    background-color: #0a192f;
    color: var(--main-color);
}

.projects-section {
    text-align: center;
    margin: 3rem 0;
}

.projects-section .title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.projects-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.project-card {
    background-color: #112240;
    color: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    padding: 1.5rem;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.2);
}

.project-card h4 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.project-card .btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    background-color: var(--main-color);
    color: #112240;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-card .btn:hover {
    background-color: #0a192f;
    color: var(--main-color);
}

.tools-frameworks {
    text-align: center;
    margin: 3rem 0;
}

.tools-frameworks .title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tools-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tools-content span {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #112240;
    color: var(--main-color);
    border: 0.2rem solid var(--main-color);
    transition: transform 0.3s ease;
}

.tools-content span:hover {
    transform: scale(1.1);
    background-color: var(--main-color);
    color: #112240;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.skill {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 20%; /* Adjusted for curved edges */
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%; /* Same curve for image */
}

.skill:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.skill::before {
    content: attr(data-skill);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: black;
    background: white;
    padding: 10px;
    border-radius: 20%; /* Make it match the box shape */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill:hover::before {
    opacity: 1;
}


.text-animate-2 {
    position: relative;
    height: 70px;
    margin-bottom: 20px;
    overflow: hidden;
}

.text-animate-2 h3 {
    display: inline-block;
    white-space: nowrap;
    border-right: 2px solid #333;
    font-size: 2rem;
    color: #00aaff; /* Customize the color */
    /* Removed blinking cursor animation */
    animation: none;
}


.text-animate {
    position: relative;
    height: 70px; /* Increased height to accommodate descenders like g, y, etc. */
    margin-bottom: 20px; /* Space below the animation text */
    overflow: hidden;
}
.text-animate h3 {
    display: inline-block;
    white-space: nowrap;
    animation: typing 2s steps(30, end);
    border-right: 2px solid #333;
}

@keyframes blink {
    50% { border-color: transparent; }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root {
    --bg-color: #2C3E50;
    --second-bg-color: #000000;
    --text-color: #ECECEC;
    --main-color: #1976D2;
    --highlight-color: #FF9800;
}


html{
    font-size: 62.5%;
    overflow-x: hidden;
}
body{
    background: var(--bg-color);
    color: var(--text-color);
    width: 100vw;
    overflow: hidden;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky{
    background:var(--second-bg-color);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
} 

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}
#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}
/* Home section design */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

:root {
    --main-color: #1e90ff;
    --text-color: #ffffff;
    --bg-color: #0a1f44;
}

/* Global CSS to set the background image for the home section */
.home {
    position: relative !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: url("../images/home-image.jpg") no-repeat center center / cover !important;
    z-index: 0 !important;
}



.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay color */
    z-index: 1;
}

.home-content {
    width: 50%;
    max-width: 60rem;
    z-index: 2; /* Ensure content is above the overlay */
    padding: 4rem;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    border-radius: 12px;
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.home-content h1 span {
    color: var(--main-color);
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--main-color);
}

.home-content p {
    font-size: 1.8rem;
    margin: 1.5rem 0 3rem;
    color: var(--text-color);
    max-width: 45rem;
    line-height: 1.5;
}

.btn-box {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.btn-box .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18rem;
    height: 5rem;
    background: var(--main-color);
    border: 0.3rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg-color);
    transition: 0.3s;
}

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

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
    background: var(--main-color);
}

.home-sci {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 0.3rem solid var(--main-color);
    border-radius: 50%;
    font-size: 22px;
    color: var(--main-color);
    transition: 0.4s;
}

.home-sci a:hover {
    color: var(--bg-color);
    background: var(--main-color);
}

.home-imgHover {
    width: 100%;
    height: 100%;
    background: url("images/about.png") no-repeat center center;
    background-size: cover;
    transition: 2s;
    opacity: 0.9;
}

.home-imgHover:hover {
    background-color: var(--bg-color);
    opacity: 0.7;
}

.static-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

/* Responsive design */
@media only screen and (max-width: 768px) {
    .home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .home-content {
        width: 90%;
        padding: 2rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

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

    .btn-box .btn {
        width: 14rem;
        height: 4rem;
        font-size: 1.6rem;
    }

    .home-sci a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

.heading {
    color: #00bfff;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    display: inline-block;
    height: 1em;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* <!-- about section design --> */

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading{
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}
span{
    color: var(--main-color);
}

.about-img{
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img{
    width: 90%;
    border-radius: 50%;
    border: .3rem solid var(--main-color);
}

.about-img .circle-spin{
    position: absolute;
    top: 50%;
    left: 50%;
    transform:  translate(-50% , -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .3rem solid var(--second-bg-color);
    border-bottom: .3rem solid var(--second-bg-color);
    border-left: .3rem solid var(--main-color);
    border-right:  .3rem  solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content{
    text-align: center;
}

.about-content h3{
    font-size: 2.6rem;
}

.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 3rem ; 
}

.btn-box.btns{
    display: inline-block;
    width: 15rem;
}

.btn-box.btns a::before{
    background: var(--second-bg-color);
}

/* <!-- education section design --> */

.education{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}
.education .education-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column{
    flex:  1 1 40rem;
}
.education-column .title{
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}
.education-column .education-box{
    border-left: .3rem solid var(--main-color);
}

.education-box .education-content{
    position: relative;
    padding-left: 2rem;
}
.education-box .education-content::before{
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content{
    position: relative;
    padding: 1.5rem;
    border: .3rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.education-content .content::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover:before{
    width: 100%;
}


.education-content .content .year{
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}
.education-content .content .year i{
    padding-right: .5rem;
}
.education-content .content h3{
    font-size: 2rem;
}
.education-content .content p{
    font-size: 1.6rem;
    padding-left: .5rem;
}

/* <!-- skills section design --> */

.skills{
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills .skills-row{
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}
.skills-row .skills-column{
    flex: 1 1 40rem;
}
.skills-column .title{
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skill-box .skill-content{
    position: relative;
    border: .3rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}
.skill-box .skill-content::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skill-box .skill-content:hover:before{
    width: 100%;
}


.skill-content .progress {
    padding: 1rem 0;
}

.skill-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: flex-start; /* Align to the start */
}

.skill-content .progress h3 span {
    display: none; /* Hide the percentage number */
}

.skill-content .progress .bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .3rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
    background: #112240;
}

.skill-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
    transition: width 0.5s ease;
}

/* Skill Percentages */
.skill-content .progress:nth-child(1) .bar span {
    width: 98%; /* Machine Learning */
}

.skill-content .progress:nth-child(2) .bar span {
    width: 85%; /* Web Development */
}

.skill-content .progress:nth-child(3) .bar span {
    width: 90%; /* scraping*/
}

.skill-content .progress:nth-child(4) .bar span {
    width: 90%; /* Social Media Management */
}

.skill-content .progress:nth-child(5) .bar span {
    width: 80%; /* Video Editing */
}

.skill-content .progress:nth-child(6) .bar span {
    width: 75%; /* Keywords Research */
}

.skill-content .progress:nth-child(7) .bar span {
    width: 85%; /* Keywords Research */
}
.skill-content .progress:nth-child(8) .bar span {
    width: 90%; /* Keywords Research */
}
.skill-content .progress:nth-child(9) .bar span {
    width: 95%; /* Keywords Research */
}


/* <!-- contact section design --> */
.contact{
    min-height: auto;
    padding-bottom: 7rem;
}
.contact form{
    max-width: 70rem;
    margin: 0 auto;
    text-align:  center;
}
.contact form .input-box{
    position: relative;
    display:  flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact form .input-box .input-field{
    position: relative;
    width: 49%;
    margin: .8rem 0;
}
.contact form .input-box .input-field input,
.contact form .textarea-field textarea{
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: .6rem;
    border: .3rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder{
    color: var(--text-color);
}

.contact form .focus{
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100% ;
    background: var(--second-bg-color);
    border-radius: .6rem;
    z-index: -1;
    transition: .5s;
}

.contact form .input-box .input-field input:focus~.focus,
.contact form .input-box .input-field input:valid~.focus,
.contact form .textarea-field textarea:focus~.focus,
.contact form .textarea-field textarea:valid~.focus{
    width:100%;
}


.contact form .textarea-field{
    position: relative;
    margin: .8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea{
    resize: none;
}

.contact form .btn-box.btns .btn{
    cursor: pointer;
}

/* <!-- footer design --> */

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p{
    font-size: 1.6rem;
}

.footer-iconTop a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .3rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}
.footer-iconTop a::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background:var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before{
    width: 100%;
}
.footer-iconTop a i{
    font-size: 2.6rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i{
    color: var(--main-color);
}



/* // BRAKING POINR  */

@media(max-width:1200px){
    html{
        font-size: 55%;
    }
}
@media(max-width: 991px){
    .header{
        padding: 2rem 4%;
    }

    section{
        padding: 10rem 4% 2rem;
    }
    .home{
        padding: 0 4%;
    }

    .footer{
        padding: 2rem 4%;
    }
}

@media(max-width:768px){
    .header{
        background: var(--bg-color);
    }

    #menu-icon{
        display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .25s ease;
        transition-delay:.25s;
        
    }
    
    .navbar.active{
        right:  0;
        transition-delay:0s ;
    }

    .navbar .active-nav{
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background:var(--bg-color);
        border-top: .1rem solid (0,0,0,rgba(0, 0, 0, .2));
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }
    .navbar.active .active-nav{
        right: 0;
        transition-delay: .25s;
    }

    .navbar a{
       display: block;
       font-size: 2rem;
       margin: 3rem 0;

       /* transition: .25s ease;
       transition-delay:0s ; */
    }
    /* .navbar.active a {
        transform: translateY(2);
        transition-delay: .25s;
  
    }
   */
   .home-imgHover{
    pointer-events: none;
    background:var(--bg-color) ;
    opacity: .6;
   } 
} 


@media(max-width:520px){
    html{
        font-size: 50%;
    }
    .home-content h1{
        display: flex;
        flex-direction: column;
    }

    .home-sci{
        width: 160px;
    }
    .home-sci a{
        width: 38px;
        height: 38px;
    }
}

@media( max-width:462px){
    .home-content h1{
        font-size: 5.2rem;
    }

    .education{
        padding: 10rem 4% 5rem 5%;
    }

    .contact from .input-box .input-field{
        width: 100%;
    }

    .footer{
        flex-direction: column-reverse;
    }
    .footer p{
        margin-top: 2rem;
        text-align: center;
    }
}

@media (max-width:371px){
    .home{
        justify-content: center;

    }

    .home-content{
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1{
        font-size: 5rem;
    }
}



/* KEYFRAMES ANIMATION */

@keyframes homeBgText {
    0%,
    10%,
    100%{
        background-position: -33rem 0;
    }
    65%,
    85%{
        background-position: 0 0;
    }
}


@keyframes homeCursorText {
    0%,
    10%,
    100%{
        width: 0;
    }
    65%,
    78%,
    85%{
        width: 100%;
        opacity: 1;
    }
    75%,
    81%{
        opacity: 0;
    }
}

@keyframes aboutSpinner{
    100% {
        transform: translate(-50% , -50%) rotate(360deg);
    }
}