@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

:root{
    --bg-color: black;
    --bottom-margin: 2rem;
    --primary-shadow: rgba(144, 0, 240, 0.3);
}

body{
    width: 100%;
    height: auto;
    background-color: black;
    overflow-x: hidden;
}

/* Custom Scroll Bar CSS */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #9000f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover{
    background: #9000f0;
}
/* navbar styling */
nav{
    width: 100%;
    height: 10vh;
    position: relative;
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.footer{
    color: white;
}

.logo{
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span{
    color: #9000f0;
    text-shadow: 0 0 10px #9000f0;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    opacity: 0;
    pointer-events: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links{
    display: flex;
}

.nav-container .links a{
    position: relative;
    font-size: 1.4rem;
    color: white;
    margin: 0 25px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #9000f0;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    color: #9000f0;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: #9000f0;
}

section{
    width: 100%;
    min-height: 90vh;
    padding-bottom: 4rem;
}

section:first-of-type{
    padding-top: 2rem;
}

section .main-container{
    display: flex;
    justify-content: center;
    gap: 18rem;
    padding: 0 5%;
    align-items: center;
}

.main-container .image{
    position: relative;
    top: 60px;
    width: clamp(220px, 38vw, 900px);
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px #9000f0;
    flex-shrink: 0;
    margin-left: auto;
}

.main-container .image img{
    width: 100%;
}

.main-container .image:hover{
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0%{
        scale: 1;
    }

    50%{
        scale: 1.05;
    }

    100%{
        scale: 1;
    }
}

.main-container .content{
    color: white;
    width: 40%;
    position: relative;
    top: 60px;
}

.content h1{
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span{
    color: #9000f0;
    text-shadow: 0 0 10px #9000f0;
}

.content .typewriter{
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;
}

.content .typewriter-text{
    color: #9000f0;
    text-shadow: 0 0 10px #9000f0;
}

.typed-cursor{
    color: #9000f0;
    font-weight: 600;
}

.content p{
    font-size: clamp(0.5rem, 0.3rem + 9.1vw, 1.1rem);
    margin: 10px 0;
}

.social-icons i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #9000f0;
    border-radius: 50%;
    color: #9000f0;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.kick-icon{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #9000f0;
    border-radius: 50%;
    color: #9000f0;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-icons i:hover,
.kick-icon:hover{
    scale: 1.3;
    color: black;
    background-color: #9000f0;
    filter: drop-shadow(0 0 10px #9000f0);
}

/* About Section Styling */
section.about .content,
section.skills .content{
    width: 80%;
    margin: 0px auto;
    font-family: 'Poppins', sans-serif;
}
.about .about-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.about-details .left{
    width: 40%;
    flex-shrink: 0;
}

.about-details .left img{
    width: 100%;
    border-radius: 12px;
}

.about-details .right{
    width: 55%;
}

section .topic{
    font-size: 25px;
    font-weight: 600;
    color: #9000f0;
    margin-bottom: 1rem;
}
section .title{
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
section .title span{
    color: white;
    font-size: 40px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}
section .title span::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #9000f0;
    left: 0;
    bottom: 0;
}

section .title span::after{
    content: '';
    position: absolute;
    bottom: -7px;
    width: 30%;
    height: 3px;
    background: #9000f0;
    left: 50%;
    transform: translateX(-50%);
}
.about-details .right{
    width: 55%;
}
.about-details .right p{
    text-align: justify;
    color: white;
    line-height: 1.6;
}

.skills{
    background: black;
}
.skills .content{
    padding: 40px 0;
}
.skills .skills-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skills-details .text{
    width: 50%;
}
.skills-details p{
    color: white;
    text-align: justify;
}
.skills .skills-details .experience{
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.skills .skills-details .num{
    color: white;
    font-size: 80px;
    font-weight: 600;
}
.skills-details .experience .exp{
    color: white;
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
}
.boxes{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.box{
    width: calc(25% - 1rem);
    background-color: #241832;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: white;
}

@media (max-width: 768px){
    .box{
        width: calc(50% - 0.5rem);
        padding: 1rem;
    }

    .box .per{
        font-size: 2.5rem;
    }

    .box .topic{
        font-size: 1.2rem;
    }
}

.box .topic{
    color: #9000f0;
    font-size: 1.55rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.box .per{
    color: #9000f0;
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1;
}



/* project-section */

.project-section{
    max-width: 1400px;   /* optional: cap it so it doesn't get absurdly wide on big screens */
    margin: 0 auto;       /* centers it if you use max-width */
    padding: 0px 100px 100px; /* was 100px 100px 100px */
    position: relative;
    transition: 1s;
    opacity: 1;
    box-sizing: border-box; /* so the 100px padding doesn't add to the width */
    margin-top: 4rem;
    font-family: 'Poppins', sans-serif;
}

.project-heading{
    color: white;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 2rem;
}

.project-container{
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center; /* or flex-start if you don't want centering */
}

@media (max-width: 600px) {
    .project-card{
        flex-basis: 100%; /* force full width, one per line */
    }
}

.project-card{
    flex: 1 1 350px;
    min-width: 280px;
    min-height: 400px;
    position: relative;
    background-color: #241832;
    border-radius: 22px;
    margin-top: 1rem;
    transition: transform .4s ease-in-out, background-color .4s ease-in-out, box-shadow .4s ease-in-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-content{
    position: relative;
    padding: 30px;
    color: #fff;
    transition: .5s;
    opacity: 1;
    flex: 1;
}

.project-title{
    font-size: 28px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-info{
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    background-color: #30203F;
    box-shadow: 0 12px 28px rgba(168, 85, 247, 0.35);
    z-index: 1;
}

/* footer-section */

footer{
    background: #9000f0;
    padding: 15px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
footer .text span{
    font-size: 17px;
    font-weight: 400;
    color: #fff;
}
footer .text span a{
    font-weight: 500;
    color: #FFF;
}
footer .text span a:hover{
    text-decoration: underline;
}
.scroll-button a{
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    background: #9000f0;
    padding: 7px 12px;;
    font-size: 17px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15);
    display: none;
}


@media (max-width: 1000px) {
    .about .about-details{
        justify-content: center;
        flex-direction: column;
    }

    .about .about-details .left{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-details .right{
        width: 90%;
        margin: 40px 0;
    }

    .about-details .right p{
        text-align: left;
    }
}

@media (max-width: 900px) {
    .about .left img{
        max-width: 350px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 968px) {

    nav{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg{
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    nav .logo{
        position: static;
        transform: none;
        font-size: 1.5rem;
    }

    section .main-container {
        padding-left: 0px;
        display: flex;
        flex-direction: column;
    }

    .cancel{
        position: absolute;
        right: 15px;
        top: 10px;
    }


    .hamburg,
    .cancel{
        opacity: 1;
        pointer-events: visible;
    }

    .main-container .content{
        margin-top: 20px;
        width: 80%;
    }

    .social-icons i,
    .kick-icon{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .main-container .image{
        width: 60%;
        max-width: 350px;
        margin: 0 auto;
    }

    .skills .skills-details{
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .skills-details .text{
        width: 100%;
        margin-bottom: 50px;
        padding: 0 1rem;
        text-align: left;
    }

    .project-section .project-container .project-card{
        flex: 1 1 100%;
        margin: 20px 0;
    }

    .box{
        width: calc(50% - 0.5rem);
        padding: 1rem;
    }

    .box .per{
        font-size: 2.25rem;
    }

    .box .topic{
        font-size: 1.1rem;
    }
}

@media (max-width: 500px){
    main-container .image{
        width: 50%;
        height: 60%;
        margin-bottom: 0px;
    }


    .main-container .content{
        width: 80%;
    }

    .skills-details .boxes .per{
        font-size: 50px;
        color: #9000f0;
    }
}


.kick-wrap {
    display: inline-block;
}
