html {
    scroll-behavior: smooth;
}

body {
    background-color: #11071f;
    color: white;
    font-family: "Montserrat", serif;
    margin: 0%;
}

/*Header section*/
.header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background-color: #1a0b2e;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 4rem;
    padding: 0 2%; 
}

.header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem; 
    margin: 0;
    padding: 0;
}

.nav-button {
    color: #B367FF;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 10px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(184, 133, 231, 0.7);
}

/* Hero Section */
.hero {
    width: 100%;
    box-sizing: border-box;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem; 
    padding: 0 2rem; 
}

.hero-text {
    text-align: left;
    max-width: 600px; 
}

.bio {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px; 
}

.hero-buttons {
    display: flex;
    gap: 15px; 
    margin-bottom: 30px; 
}

.btn {
    width: 7.2rem;
    padding: 12px 28px;
    background-color: #b367ff;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease; 
    text-align: center;
}

.btn:hover{
    background-color: #9a4fe0; 
    transform: translateY(-3px); 
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-i {
    display: grid;
    align-items: center;
    width: 2rem; 
    height: 2rem;
    border-radius: 50%;
    place-items: center;
    background-color: white;
    padding: 5px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.hero-i:hover {
    transform: scale(1.1); 
}

.hero-i a {
    color: black;
    text-decoration: none;
    display: flex; 
    align-items: center;
    justify-content: center;
}

.hero-i a i{
    font-size: 1.7rem;
}

.hero-img img {
    max-width: 100%;
    width: 24rem;
    background-color: #B367FF;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*Skills section*/
.skills {
    text-align: center;
    align-items: center;
    align-content: center;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 10%;
}

.skill-card {
    width: 120px;
    height: 140px;
    background-image: linear-gradient(-75deg, #250d46, #090113);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow:
        0 0 15px #8e47d5,
        0 0 30px #4b1780,
        0 0 45px #1e0439;
}

.skill-card img {
    max-width: 60px;
    max-height: 60px;
    flex-grow: 1;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 0.9rem;
    font-weight: 500;
}



@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-500%);
    }
}

/*Work Experience section*/
.work-experience{
    text-align: center;
    margin: 0 10%;
}

.experience{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.experience-block{
    display: flex;
    background-image: linear-gradient(-75deg, #32115f, #140529);
    border-radius: 5px;
    padding: 5px;
    border-left: 2px solid #8e47d5;
    column-gap: 2rem;
}


.experience img{
    width: 50px;
    padding: 15px;
}


/*Projects section*/
.projects-section {
    text-align: center;
    align-content: center;
    align-items: center;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    margin: 0 10%;
    text-align: center;
    gap: 5rem;
}

.project-block {
    border: 1px solid #8e47d5;
    background-image: linear-gradient(-75deg, #32115f, #140529);
    border-radius: 10px;
}

.tech-stack{
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.tech-stack img{
    width: 2rem;
    height: 2rem;
    padding: 5px;
}

.block-info {
    border-radius: 10px;
    padding: 15px;
    height: 16rem;
}

.project-block:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 10px #8e47d5,
        0 0 20px #4b1780,
        0 0 30px #1e0439;
    border: none;
}

.block-info img {
    width: 20rem;
    background-size: cover;
    height: 11rem;
}

.block-link {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.block-link a {
    width: 50%;
    border-radius: 15px;
    padding: 15px;
    text-decoration: none;
    color: #8e47d5;
}

.p-button {
    margin-top: 1rem;
    padding: 10px;
}

.p-button a {
    padding: 15px;
    background-color: #32115f;
    color: white;
    text-decoration: none;
    border-radius: 15px;
}


/*Certification*/
.certification {
    text-align: center;
}

.certification h1 {
    color: white;
    margin-bottom: 2rem;
}

.certification-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 10%;
}

.certificate-block {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.certificate-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.certificate-block:hover img {
    transform: scale(1.07);
}

.certificate-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: height 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    text-align: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.certificate-block:hover .certificate-info {
    height: 60%;
}

.cert-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.cert-provider {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.cert-link {
    margin-top: 0.4rem;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    text-decoration: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: background 0.3s, color 0.3s, border 0.3s;
}

.cert-link:hover {
    background: #9A4FE0;
    color: white;
    border-color: whitesmoke;
}


/*Publications*/
.publication-section {
    text-align: center;
    margin: 0 10%;
} 

.publication-container{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

summary{
    list-style: none;
} 

.paper{
    height: 20rem;
    display: flex;
    gap:1rem;
    justify-content: flex-start;
    text-align: left;
}

.paper img{
    width: 15rem;
    height: auto;
}

.paper p {
    text-align: justify;
}

.publication{
    padding: 15px;
    border: 1px solid #8e47d5;
    border-radius: 15px;
    background-image: linear-gradient(-75deg, #32115f, #140529);
}

.authors strong, p strong{
    color: #8e47d5;
}

.publication a{
    color: #B367FF;
    text-decoration: none;
    padding: 10px 5px;
    border-radius: 10px;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication a:hover{
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(184, 133, 231, 0.7);
}




/*Education*/
.education {
    text-align: center;
    margin: 0 10%;
}

.edu-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 2rem;
}

.edu-box {
    display: flex;
    justify-content: center;
    background-image: linear-gradient(-75deg, #32115f, #140529);
    border-radius: 10px;
    padding: 10px;
    border-left: 3px solid #8e47d5;
    column-gap: 2rem;
}

.edu-box img {
    width: 100px;
    padding: 10px;
}

/*Contact*/
.contact-sec {
    margin: 0 10%;
    align-content: center;
}

.contact-sec h2 {
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    background-image: linear-gradient(75deg, #32115f, #140529);
    border-radius: 15px;
    gap: 2rem;
    align-content: center;
    box-shadow: 2px 2px 0px #8e47d5;
}

.form-wrapper {
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
    gap: 2rem;
    text-align: center;
}

.highlight{
    color: #8e47d5;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #32115f;
    padding: 1rem;
    border-radius: 15px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    padding: 10px;
    border-radius: 10px;
    border: none;
}

.contact-form button {
    background-color: #8e47d5;
    color: white;
}

.name-row {
    gap: 1rem;
    justify-content: center;
    display: flex;
}

.name-row input {
    width: 50%;
}

.image-wrapper {
    align-items: center;
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-link {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.contact-link a {
    text-decoration: none;
    color: white;
    padding: 10px;
    text-align: center;
}
.reach-out{
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.reach-out a{
    text-decoration: none;
    color: white;
}
.image-wrapper p a {
    text-decoration: none;
    color: whitesmoke;
}

.image-wrapper img {
    width: 100%;
    max-width: 250px;
    padding: 15px;
}


/*Footer*/
.footer {
    align-items: center;
    text-align: center;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 1rem 0 0 0;
    z-index: 1000;
}




/*----------------------------------------------------*/


.wrapper {
    padding-bottom: 90px;
}

.divider {
    position: relative;
    height: 1px;
    margin: 4rem 0 
}

.div-transparent:before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 1px;
    background-image: linear-gradient(to right, transparent, rgb(48, 49, 51), transparent);
}

.div-dot:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -9px;
    left: calc(50% - 9px);
    width: 13px;
    height: 13px;
    background-color: #6c369e;
    border: 1px solid #1d0b3b;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgb(255, 255, 255), 0 0 0 4px white;
}


.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #b367ff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease-in-out;
}

.scroll-top-btn:hover {
    background-color: #9a52e0;
}

/*---------------------------------------------------*/

@media (max-width:1024px){
    .header h1{
        width: 50%;
        margin-left: 2%;
        font-size: 1.8rem;
    }
    .header ul{
        width: 90%;
    }
    .header{
        justify-content: space-between;
    }

    .hero{
        display: flex;
        flex-direction: column-reverse;
        gap: 1rem;
        height: 60vh;
    }  

    .hero-img img{
        width: 20rem;
    }
    
    .hero h2{
        text-align: center;
    }
    .hero .bio{
        text-align: justify;
    }
    .hero-buttons .btn{
        text-align: center;
    }
    .hero-buttons, .social-links{
        justify-content: center;
    }

    .skills-container{
        margin: 0 5%;
        gap: 1rem;
    }

    .experience{
        grid-template-columns: repeat(2, 1fr);
        margin: 0%;
        gap: 1rem;
    }
    .experience-block{
        gap: 1rem;
    }

    .projects{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 10%;
        justify-content: center;
        gap: 2rem;
    }

    .block-info{
        padding: 15px 0 0 0 ;
    }

    .certification-container{
        margin: 0 10%;
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }

    .paper{
        align-items: center;
        height: auto;
    }
    
    .article{
        margin: 0 20%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .edu-block{
        gap: 1rem;
    }
    
    .contact-container{
        gap: 1rem;
    }

    .contact-link{
        display: flex;
        gap: 0.4rem;
    }

    .contact-link a span{
        display: none;
    }

    .reach-out{
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

}


#hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 1.2rem; 
    color: white;
    margin-right: 2%;
}

@media(max-width:786px){

    .divider {
        margin: 3rem 0;
    }

    .header{
        height: 3rem;
    }

    .header h1{
        width: 70%;
        margin-left: 2%;
        font-size: 1.2rem;
    }

    .links{
        display: none;
        position: absolute;
        top: 3rem;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        background-color: #1a0b2e;
        padding: 1rem 0;
        list-style: none;
        border-top: 1px solid white;
    }

    .links.active {
        display: flex;
        width: 100%;   
    }

    #hamburger-icon{
        display: block;
        font-size: 1.5rem;
    }

    .hero{
        height: auto;
        margin: 0;
    }
    .hero-img img{
        width: 12rem;
        margin-top: 2rem;
    }

    .hero h2,
    .skills h2,
    .work-experience h2,
    .projects-section h2,
    .certification h2,
    .publication-section h2,
    .article-sec h2,
    .education h2,
    .contact-sec h2
    {
        text-align: center;
        font-size: 1.2rem;
    }

    .bio{
        text-align: justify;
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .hero-buttons, .social-links{
        justify-content: center;
        gap: 0.5rem;
        margin: 0 0 1rem 0;
    }
    .hero-buttons .btn{
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .skills-container{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 0 5%;
    }

    .skill-card{
        width: 100px;
        height: 120px;
    }
    .skill-card img{
        width: 40px;
    }
    .skill-card p{
        font-size: 0.8rem;
    }

    .work-experience{
        margin: 0 5%;   
    }
    .experience{
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .experience-block img{
        width: 55px;
        height: 55px;
        padding: 0;
    }

    .exp-info h3, p{
        margin: 0 0 5px 0;
    } 

    .exp-info h3{
        font-size: 1rem;
    }

    .exp-info p{
        font-size: 0.9rem;
    }

    
    .projects{
        grid-template-columns: repeat(1, 1fr);
        margin: 0 10%;
        gap: 2rem;
    }

    .block-info{
        margin: 0;
        padding: 10px;
        height: auto;
    }

    .block-info img{
        width: 100%;
        height: auto;
    }
    
    .block-info  h3{
        font-size: 1rem;
    }

    .tech-stack img{
        width: 1.5rem;
        height: 1.5rem;
    }

    .certification-container{
        display: grid;
        grid-template-columns: repeat(1,1fr);
    }

    .publication-section{
        margin: 0 5%;
    }

    .paper{
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    .paper img{
        width: 80%;
    }

    .publication h3, p, .authors{
        margin: 0 0 1rem 0;
    }

    .publication h3{
        text-align: center;
        font-size: 1rem;
    }   

    .publication p, .authors{
        font-size: 0.9rem;
    }
    .article-sec{
        margin: 0 10%;
    }

    .article{
        margin: 0 10%;
        display: grid;
        grid-template-columns: repeat(1,1fr);
    }

    .article-block .title h4{
        font-size: 0.9rem;
    }

    .education{
        margin: 0 5%;
    }

    .edu-block{
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }

    .edu-info h3{
        font-size: 1rem;
        margin: 0 0 5px 0;
    }

    .edu-info {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }
    .contact-sec{
        margin: 0 5%;
    }
    
    .contact-container{
        gap: 0rem;
        display: grid;
        justify-items: center;
    }

    .image-wrapper{
        display: contents;
    }

    .image-wrapper img{
        order: 1;
    }

    .form-wrapper{
        order: 2;
        padding-bottom: 0;
    }

    .form-title h2{
        margin: 0;
    }

    .image-wrapper > .contact-link{
        order: 3;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
    }

    .image-wrapper > .reach-out {
        display: none;
    }

    .contact-link a span{
        display: none;
    }

    .contact-link a i {
        font-size: 1.2rem;
        color: white;
    }

    .footer{
        font-size: 0.8rem;
    }

}
