/* Mobile styles */
@media (max-width: 640px) {

body{
    margin: 0px 12px auto;
}

h2{
    font-size: 1.3rem;
}
    /* Adjust header layout */
    header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }

    /* Keep the logo as is */
    .logo {
        width: 120px;
        margin: 10px;
    }

    /* Adjust .me section */
    .me {
        text-align: left;
        padding: 0 10px;
    }
    .love {
        font-size: 0.8rem;
    }

    /* Align social icons */
    .social-icon {
        justify-content: flex-start;
    }

    .menu-icon {
        position: absolute;
        top: 10px;
        right: 15px;
        cursor: pointer;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--primary);
        border-radius: 6px;
        color: var(--primary);
        padding: 2px 6px;
    }

    .menu-icon svg {
        width: 28px;
        height: 28px;
    }

    /* Hide navigation initially */
    .navigation {
        flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: var(--primary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding-top: 60px;
    transition: left 0.3s ease;
    background: linear-gradient(150deg, rgba(0, 0, 0, 0.5) 70%, rgba(255, 208, 185, 0.61) 100%);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(192, 189, 188, 0.32);
    z-index: 1000;
    }

    /* Show navigation when active */
    .navigation.active {
        left: 0;
        display: flex;
    }

    /* Style menu items */
    .menu-list {
        flex-direction: column;
        gap: 1rem;
        padding-left: 20px;
    }

    .menu-list li {
        display: block;
    }

    .menu-list li a {
        display: flex;
        align-items: center;
        color: white;
        font-size: 1.2rem;
        padding: 10px;
        border-radius: 4px;
        transition: background 0.3s ease;
    }

    .menu-list li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .timeline::before {
        content: "";
        position: absolute;
        left: 3px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, 
            rgba(255, 255, 255, 0) 1%,
            rgba(173, 139, 121, 0.8) 4%,
            rgba(173, 139, 121, 0.8) 70%,
            rgba(255, 255, 254, 0) 100%
        );
    }


.project-wrapper, .skill-wrapper, .open-source, .contribution-wrapper{
    display: block;
    flex-direction: column;
}
.project-box{
    width: 98%;
    align-self: center;
    margin-bottom: 18px;
}

.project-desc{
    font-size: 0.8rem;
}

.publication-item{
    width: 95%;
    font-size: 0.8rem;
    align-self: center;
}

.publication-header{
    margin-bottom: 1rem;
}

.skillset span {
    font-size: 0.8rem;
}

#social-icon{
    display: block;
    justify-content: center;
}

.secondary-btn{
    font-size: 0.9rem;
}

}