@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    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: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    width: 100vw;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);

}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.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;
    transition: .3s;
}


.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

section {
    min-height: 100vh;
    max-height: auto;
    padding: 10rem 9% 2rem;
    position: relative;
    z-index: 1;
}

.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
    justify-content: space-between;
}

.my-img {
    display: flex;
    justify-content: center;
    width: 40rem;
}

.my-img img {
    margin: 0 auto;
    width: 30rem;
    border-radius: 50%;
}

.home-content {
    max-width: 60rem;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content .text-animate {

    font-size: 3.2rem;
}

.home-content .text-animate span {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg,
            var(--main-color) 0%,
            var(--text-color) 50%,
            var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    /*     z-index: 1; */
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    ;
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 22rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: all 0.4s ease;
}

.home-sci a:hover {
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), 0.5),
        0 0 30px rgba(var(--main-color-rgb), 0.3);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.9),
            var(--main-color),
            rgba(var(--main-color-rgb), 0.7));
    z-index: -1;
    transition: width 0.4s ease;
}

.home-sci a:hover::before {
    width: 100%;
}

.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    background: transparent;
    padding-bottom: 6rem;
    flex-wrap: wrap;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--second-bg-color);
    z-index: 0;
}

.about>* {
    position: relative;
    z-index: 1;
}

.about-details {
    width: 60%;
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    width: 30rem;
    height: 30rem;
    border-radius: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    border-radius: 50%;
    border: .2rem 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: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem 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;
    border-radius: .8rem;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

.education {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    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: .2rem 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: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
}

.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-top: .5rem;
}

/* Detailed job descriptions */
.education-content ul,
.education-content ul li {
    font-size: 1.8rem;
    /* Slightly larger font for list items */
    line-height: 1.8;
    /* More line spacing for readability */
    list-style-type: none;
    /* Remove default bullets, we use custom ones */
    margin-left: 2rem;
    /* Indents lists for clarity */
}



.tech-stack {
    background: transparent;
    padding: 8rem 9% 6rem;
    text-align: left;
    color: var(--text-color);
    position: relative;
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--second-bg-color);
    z-index: 0;
}

.tech-stack>* {
    position: relative;
    z-index: 1;
}

.tech-stack .heading {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-category {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--main-color);
}

.tech-category:hover::before {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.category-header i {
    font-size: 3rem;
    color: var(--main-color);
    background: rgba(100, 255, 218, 0.1);
    padding: 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.tech-category:hover .category-header i {
    transform: scale(1.1) rotate(5deg);
    background: var(--main-color);
    color: var(--bg-color);
}

.category-header h3 {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 600;
    margin: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: var(--second-bg-color);
    color: var(--text-color);
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: 500;
    border: 1.5px solid rgba(var(--main-color-rgb), 0.3);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(var(--main-color-rgb), 0.3),
            transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.9),
            var(--main-color),
            rgba(var(--main-color-rgb), 0.7));
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--main-color-rgb), 0.5),
        0 0 30px rgba(var(--main-color-rgb), 0.3);
    border-color: var(--main-color);
}

/* Light theme adjustments */
body.light-theme .tech-category {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

body.light-theme .tech-category:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

body.light-theme .category-header i {
    background: rgba(43, 108, 176, 0.1);
}

body.light-theme .tech-category:hover .category-header i {
    background: var(--main-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tech-categories {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    .tech-stack {
        padding: 6rem 5% 4rem;
    }
}

@media (max-width: 768px) {
    .tech-categories {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-stack {
        padding: 5rem 4% 3rem;
    }

    .tech-stack .heading {
        font-size: 4rem;
        margin-bottom: 3rem;
    }

    .tech-category {
        padding: 2rem;
    }

    .category-header h3 {
        font-size: 1.8rem;
    }

    .category-header i {
        font-size: 2.5rem;
        padding: 0.8rem;
    }

    .tech-tag {
        font-size: 1.3rem;
        padding: 0.7rem 1.4rem;
    }
}

@media (max-width: 480px) {
    .tech-stack .heading {
        font-size: 3.5rem;
    }

    .tech-tags {
        gap: 0.8rem;
    }

    .tech-tag {
        font-size: 1.2rem;
        padding: 0.6rem 1.2rem;
    }
}


.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;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 2.5rem;
    border-radius: .6rem;
    border: .2rem solid var(--main-color);
    padding: .5rem;
    margin: 1rem 0;
}

.skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
    width: 95%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
    width: 90%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
    width: 75%;
}

.skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
    width: 85%;
}


.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
    width: 85%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
    width: 80%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
    width: 75%;
}

.skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
    width: 55%;
}

.portfolio {
    min-height: auto;
    padding-bottom: 7rem;
}

.portfolio h2 {
    margin-bottom: 4rem;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.portfolio-container .portfolio-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgb(189, 127, 247);
    overflow: hidden;
    display: flex;
}

.portfolio-box img {
    width: 100%;
    transition: .5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, .35), var(--second-bg-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2.25rem;
}

.portfolio-layer p {
    font-size: 1.25rem;
    margin: .3rem 0 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.portfolio-layer a i {
    font-size: 2rem;
    color: var(--second-bg-color);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Three columns */
    justify-content: center;
    /* Center grid items */
    gap: 2.5rem;
    padding: 0 5rem;
    /* Adjust padding as needed */
}

.portfolio-box {
    background: var(--second-bg-color);
    /* Optional: gives a background to the boxes */
    border-radius: 15px;
    /* Rounded corners */
    overflow: hidden;
    transition: transform .3s ease-in-out;
    /* Smooth transform effect */
}

@media (max-width: 1024px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns for smaller screens */
    }
}

/* Ensure the image covers the box properly */
.portfolio-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    /* Align with .portfolio-box */
    object-fit: cover;
    /* Cover the area without losing aspect ratio */
}


.contact {
    /* min-height: 80vh; */
    padding-bottom: 7rem;
    background-color: var(--second-bg-color);
}

.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: .2rem 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 input:focus~.focus,
.contact form .textarea-field textarea input: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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
}

.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: .2rem solid var(--main-color);
    border-radius: .6rem;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
}

@media (max-width: 1200px) {
    html {
        font-size: 55%;
        overflow-x: hidden;
    }
}

@media (max-width: 991px) {
    html {
        overflow-x: hidden;
    }

    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 884px) {
    html {
        overflow-x: hidden;
    }

    .portfolio-layer h4 {
        font-size: 2rem;
    }

    .portfolio-layer p {
        font-size: 1rem;
    }

    .portfolio-layer a {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        width: 100vw;
        overflow-x: hidden;
    }

    .header {
        background: var(--bg-color);
        width: 100vw;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--bg-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        transition: .30s ease;
        transition-delay: .30s;
    }

    .navbar.active {
        left: 0;
        transition-delay: .30s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        padding-top: 10rem;
        flex-direction: column;
        justify-content: space-evenly;
        max-height: 200vh;
    }

    .home-content h1,
    .home-content p {
        text-align: center;
    }

    .home-content .text-animate {
        margin: 0 auto;
        text-align: center;
    }

    .home .home-info {
        order: 2;
        height: 45rem;
    }

    .home-sci {
        width: 25rem;
        position: static;
        margin: 5rem auto;
    }

    .home .home-info .home-content .btn-box {
        margin: 0 auto;
    }

    .about {
        flex-direction: column;
        justify-content: space-evenly;
    }

    .about .about-details {
        width: 90%;
    }

    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-layer h4 {
        font-size: 2.25rem;
    }

    .portfolio-layer p {
        font-size: 1.5rem;
    }

    .portfolio-layer a {
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 654px) {
    html {
        font-size: 50%;
    }

    .portfolio-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 5rem;
    }

    .portfolio-layer h4 {
        font-size: 2.5rem;
    }

    .portfolio-layer p {
        margin-top: 2rem;
        font-size: 2rem;
    }

    .portfolio-layer a {
        margin-top: 3.5rem;
        width: 6rem;
        height: 6rem;
    }

    .portfolio-layer a i {
        font-size: 3rem;
    }
}

@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 9%;
    background: var(--bg-color);
    color: var(--text-color);
}

.footer .btn-box,
.footer .home-sci {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Spacing between icons and the button */
}

.footer .btn-box a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    font-size: 20px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
}

.footer .btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.9),
            var(--main-color),
            rgba(var(--main-color-rgb), 0.7));
    z-index: -1;
    transition: width 0.4s ease;
}

.footer .btn-box a:hover {
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--main-color-rgb), 0.5),
        0 0 30px rgba(var(--main-color-rgb), 0.3);
}

.footer .btn-box a:hover::before {
    width: 100%;
}

.footer p {
    flex-grow: 1;
    /* Allows the copyright text to take available space */
    text-align: center;
    /* Centers the copyright text */
    margin: 0 20px;
    /* Margin around the text */
}

.footer a {
    text-decoration: none;
    /* Ensures links are not underlined */
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        /* Stacks the elements vertically on small screens */
        align-items: center;
        /* Aligns items centrally */
    }

    .footer .btn-box,
    .footer .home-sci {
        justify-content: center;
        /* Centers the buttons and icons horizontally */
    }
}

:root {
    --bg-color: #ffffff;
    /* Pure white background */
    --second-bg-color: #f8f9fa;
    /* Light gray for secondary sections */
    --text-color: #2d2d2d;
    /* Dark gray for text */
    --main-color: #228B22;
    /* Forest green for accents (WCAG AAA contrast) */
}

/* Update all text colors for contrast */
body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header border for depth */
.header {
    background: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navigation links color */
.navbar a {
    color: var(--text-color);
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

/* Portfolio card adjustments */
.portfolio-container .portfolio-box {
    box-shadow: 0 0 1rem rgba(34, 139, 34, 0.15);
    border: 1px solid #dee2e6;
}

/* Education/experience timeline colors */
.education-box {
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content::before {
    background: var(--main-color);
}

/* Tech stack cards */
.tech-category {
    background: var(--bg-color);
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Footer adjustments */
.footer {
    background: var(--second-bg-color);
    border-top: 1px solid #dee2e6;
}

/* Social icons hover states */
.home-sci a:hover {
    color: var(--bg-color);
    background: var(--main-color);
}

/* Background Particles */
.particles-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    /* Above background, below content */
    pointer-events: none;
    /* Allow clicks through particles */
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite linear;
    z-index: 0;
}

/* Mouse-following particles */
.mouse-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px var(--main-color),
        0 0 20px var(--main-color);
    animation: mouseparticleFade 0.8s ease-out forwards;
}

@keyframes mouseparticleFade {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--offset-x), var(--offset-y)) scale(0);
    }
}

/* Multiple animation variations */
@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(40vw, 25vh);
    }

    50% {
        transform: translate(-15vw, 45vh);
    }

    75% {
        transform: translate(30vw, -10vh);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-25vw, 35vh);
    }

    50% {
        transform: translate(15vw, -20vh);
    }

    75% {
        transform: translate(-10vw, 25vh);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(15vw, -15vh);
    }

    50% {
        transform: translate(-30vw, 25vh);
    }

    75% {
        transform: translate(20vw, 40vh);
    }
}

/* Fluid shape styling */
.fluid-shape {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 63% 37% 56% 44% / 46% 49% 51% 54%;
    animation: morph 12s infinite linear;
    background: var(--main-color);
    padding: 8px;
}

.fluid-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

/* Fluid animation */
@keyframes morph {
    0% {
        border-radius: 63% 37% 56% 44% / 46% 49% 51% 54%;
    }

    33% {
        border-radius: 45% 55% 62% 38% / 51% 44% 56% 49%;
    }

    66% {
        border-radius: 55% 45% 39% 61% / 59% 53% 47% 41%;
    }

    100% {
        border-radius: 63% 37% 56% 44% / 46% 49% 51% 54%;
    }
}

/* Optional glowing border effect */
.fluid-shape::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg,
            var(--main-color),
            var(--second-bg-color),
            var(--main-color));
    z-index: -1;
    border-radius: inherit;
    animation:
        morph 12s infinite linear,
        rotate 8s linear infinite;
    opacity: 0.4;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.publications {
    padding: 5rem 9%;
}

.publication-item {
    background: var(--second-bg-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.publication-meta {
    color: var(--main-color);
    font-size: 1.4rem;
    margin: 0.5rem 0;
}

.publication-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.publication-link:hover {
    opacity: 0.8;
}

.certifications {
    background: transparent;
    padding: 5rem 9%;
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--second-bg-color);
    z-index: 0;
}

.certifications>* {
    position: relative;
    z-index: 1;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.certification-box {
    background: var(--bg-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.certification-box:hover {
    transform: translateY(-5px);
}

.certification-badge {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-top: 1.5rem;
}

/************************************ */

/* ===== Theme Toggle Styles ===== */
.theme-toggle {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sun,
.moon {
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Default state (Dark Theme) */
.sun {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.moon {
    opacity: 0;
    transform: scale(0.7) rotate(-45deg);
}

/* Light Theme State */
body.light-theme .sun {
    opacity: 0;
    transform: scale(0.7) rotate(45deg);
}

body.light-theme .moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-icon:hover {
    transform: rotate(15deg);
}

/* ===== Theme Toggle Styles ===== */
.theme-toggle {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme icon styling */
.theme-icon-dark,
.theme-icon-light,
.theme-icon-purple,
.theme-icon-emerald,
.theme-icon-sunset {
    fill: none;
    stroke: var(--main-color);
    stroke-linecap: round;
    stroke-width: 2;
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

/* Show correct icon for each theme */
body:not([class*="theme-"]) .theme-icon-dark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body.theme-light .theme-icon-light {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body.theme-purple .theme-icon-purple {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

body.theme-emerald .theme-icon-emerald {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    stroke-width: 1.6;
}

body.theme-sunset .theme-icon-sunset {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-icon:hover {
    transform: rotate(15deg);
}

/* Add to CSS */
.nav-container {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .navbar a {
        font-size: 1.5rem;
        margin-left: 2rem;
        white-space: nowrap;
    }

    .nav-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

:root {
    /* Theme 1: Dark (Default) */
    --bg-color: #0a192f;
    --second-bg-color: #172a45;
    --text-color: #ccd6f6;
    --main-color: #64ffda;
    --main-color-rgb: 100, 255, 218;
}

/* Theme 2: Light */
body.theme-light {
    --bg-color: #f8f9fa;
    --second-bg-color: #ffffff;
    --text-color: #2d3748;
    --main-color: #2b6cb0;
    --main-color-rgb: 43, 108, 176;
}

/* Theme 3: Purple */
body.theme-purple {
    --bg-color: #1a0b2e;
    --second-bg-color: #2d1b4e;
    --text-color: #e1d4f7;
    --main-color: #b794f6;
    --main-color-rgb: 183, 148, 246;
}

/* Theme 4: Emerald */
body.theme-emerald {
    --bg-color: #0d1b1a;
    --second-bg-color: #1a2e2a;
    --text-color: #d5f0e8;
    --main-color: #6ee7b7;
    --main-color-rgb: 110, 231, 183;
}

/* Theme 5: Sunset */
body.theme-sunset {
    --bg-color: #1a0f0a;
    --second-bg-color: #2d1f18;
    --text-color: #f7e8d5;
    --main-color: #ff8a65;
    --main-color-rgb: 255, 138, 101;
}

/* Update particles */
.particle {
    background: var(--main-color);
    opacity: 0.15;
}

/* Project Cards Mobile Fix */
@media (max-width: 768px) {
    .portfolio-layer {
        padding: 0 2rem;
    }

    .portfolio-layer h4 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .portfolio-layer p {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    .project-links a {
        width: 3.5rem;
        height: 3.5rem;
    }

    .portfolio-box {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Ensure proper viewport scaling */
meta[name="viewport"] {
    content: width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=0.25;
}

/* Universal Image Scaling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* GitHub Icon Fix */
.bxl-github {
    font-size: 2.5rem;
    vertical-align: middle;
}

.portfolio-layer {
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.portfolio-layer p {
    font-size: 1.4rem;
    line-height: 1.5;
    margin: 1rem 0;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

svg,
path {
    transition: stroke 0.3s ease, fill 0.3s ease;
}

/* Header Structure */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--bg-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.navbar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1001;
}

/* Responsive Text Labels */
.navbar a {
    font-size: 1.6rem;
    white-space: nowrap;
    padding: 0.8rem 1.2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background: rgba(var(--main-color-rgb), 0.1);
}

/* Mobile Optimization */
@media (max-width: 1200px) {
    .navbar a {
        font-size: 1.4rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        display: none;
    }

    .navbar.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .theme-toggle {
        order: -1;
        /* Move theme toggle left on mobile */
    }
}

/* ----- Navigation ----- */
.navbar {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem;
}

.navbar a {
    position: relative;
    display: flex;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.navbar i {
    font-size: 2rem;
    color: var(--text-color);
}

.navbar .tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar a:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* Active state */
.navbar a.active {
    background: rgba(var(--main-color-rgb), 0.1);
}

.navbar a.active i {
    color: var(--main-color);
}

/* Mobile Menu (Right-aligned) */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 70px;
        right: -300px;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--second-bg-color);
        padding: 2rem;
        transition: all 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }

    .navbar i {
        font-size: 1.8rem;
        min-width: 30px;
    }

    /* Hamburger Icon */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: var(--text-color);
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Active State for All Icons */
.navbar a.active i {
    color: var(--main-color);
}

/* Active State for All Icons */
.navbar a.active i {
    color: var(--main-color);
    filter: drop-shadow(0 0 8px var(--main-color));
    transition: all 0.3s ease;
}

/* Specific briefcase icon adjustment if needed */
.navbar a[href="#experience"].active i.bxs-briefcase {
    transform: scale(1.1);
}

/* ========== PROFESSIONAL UI ENHANCEMENTS ========== */

/* Enhanced Typography */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Enhanced Header with Glass Effect */
.header {
    backdrop-filter: blur(10px);
    background: rgba(var(--bg-color), 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.theme-light .header {
    background: rgba(248, 249, 250, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced Logo */
.logo {
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.05em;
    transition: all 0.3s ease;
}

.logo span {
    color: var(--main-color);
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover span {
    text-shadow: 0 0 20px var(--main-color);
}

/* Enhanced Sections */
section {
    position: relative;
    overflow: visible;
    background: transparent;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(var(--main-color-rgb), 0.3),
            transparent);
    z-index: 2;
}

/* Enhanced Home Section */
.home-content h1 {
    background: linear-gradient(135deg,
            var(--text-color) 0%,
            var(--main-color) 50%,
            var(--text-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-content p {
    line-height: 1.8;
    text-align: justify;
    opacity: 0.95;
}

/* Enhanced Social Icons */
.home-sci a,
.footer .btn-box a {
    position: relative;
    overflow: hidden;
}

.home-sci a::after,
.footer .btn-box a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--main-color);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.home-sci a:hover::after,
.footer .btn-box a:hover::after {
    width: 100%;
    height: 100%;
}

/* Enhanced About Section */
.about-img img {
    box-shadow: 0 10px 40px rgba(var(--main-color-rgb), 0.2);
    transition: all 0.4s ease;
}

.about-img:hover img {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(var(--main-color-rgb), 0.3);
}

/* Enhanced Education/Experience Cards */
.education-content .content {
    background: var(--second-bg-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.education-content .content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.1),
            rgba(var(--main-color-rgb), 0.2),
            rgba(var(--main-color-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.education-content .content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.3),
        0 0 40px rgba(var(--main-color-rgb), 0.2);
    border-color: var(--main-color);
}

.education-content .content:hover::after {
    opacity: 1;
}

.education-content .content>* {
    position: relative;
    z-index: 1;
}

.education-content .content h3 {
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-content ul li {
    position: relative;
    list-style-type: none;
    padding-left: 2rem;
}

.education-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
    font-size: 1.8rem;
}

/* Enhanced Portfolio Cards */
.portfolio-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--main-color-rgb), 0.1);
}

.portfolio-box:hover {
    box-shadow: 0 15px 40px rgba(var(--main-color-rgb), 0.25);
    border-color: var(--main-color);
}

.portfolio-layer h4 {
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1rem;
}

/* Enhanced Certifications */
.certification-box {
    border: 1px solid rgba(var(--main-color-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.1),
            rgba(var(--main-color-rgb), 0.2),
            rgba(var(--main-color-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.certification-box:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.3),
        0 0 40px rgba(var(--main-color-rgb), 0.2);
    transform: translateY(-5px);
}

.certification-box:hover::after {
    opacity: 1;
}

.certification-content {
    position: relative;
    z-index: 1;
}

.certification-content h3 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.certification-badge {
    transition: all 0.3s ease;
}

.certification-box:hover .certification-badge {
    filter: brightness(1.2);
    opacity: 0.9;
}

/* Enhanced Publications */
.publication-item {
    border: 1px solid rgba(var(--main-color-rgb), 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.publication-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(var(--main-color-rgb), 0.1),
            rgba(var(--main-color-rgb), 0.2),
            rgba(var(--main-color-rgb), 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(var(--main-color-rgb), 0.3),
        0 0 40px rgba(var(--main-color-rgb), 0.2);
    border-color: var(--main-color);
}

.publication-item:hover::after {
    opacity: 1;
}

.publication-item>* {
    position: relative;
    z-index: 1;
}

.publication-item h3 {
    font-weight: 600;
    font-size: 1.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.publication-authors {
    font-style: italic;
    opacity: 0.85;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(var(--main-color-rgb), 0.1);
    border-radius: 0.5rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.publication-link:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateX(5px);
}

/* Enhanced Footer */
.footer {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer p {
    font-size: 1.4rem;
    opacity: 0.85;
}

/* Smooth Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--second-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Enhanced Transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, transform;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection Styling */
::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

::-moz-selection {
    background: var(--main-color);
    color: var(--bg-color);
}

/* Enhanced Heading Styles */
.heading {
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
    background: linear-gradient(135deg,
            var(--text-color) 0%,
            var(--main-color) 40%,
            var(--text-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading span {
    background: linear-gradient(135deg,
            var(--main-color) 0%,
            var(--text-color) 50%,
            var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    border-radius: 2px;
}

/* Enhanced Buttons */
.btn {
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 56%;
    }

    .heading::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 52%;
    }
}

/* Professional Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Accessibility Improvements */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 3px;
}

/* Print Styles */
@media print {

    .header,
    .theme-toggle,
    .menu-toggle,
    .home-sci,
    .particles-container {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}