/* CSS general */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

a {
    color: #fff;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}


:root {
    --primary-color: #64ffda;
    --bg-color: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --text-color: #e6e6e6;
    --secondary-text: #b3b3b3;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header Section */
.header {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.menu-bar a {
    font-size: 1.6rem;
    margin-left: 3.5rem;
    transition: 0.3s ease;
    position: relative;
}

.menu-bar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(77, 255, 187);
    transition: width 0.3s ease;
}

.menu-bar a:hover::after {
    width: 100%;
}

.menu-bar a:hover {
    color: rgba(77, 255, 187);
}

#menu-btn {
    font-size: 3rem;
    display: none;
}

section {
    padding: 12rem 15%;
    min-height: 20vh;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    min-height: 100vh;
    padding-top: 8rem;
}

.home-bio {
    max-width: 60rem;
}

.home-bio h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

span {
    color: rgba(77, 255, 187);
}

.home-bio h1 {
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #fff, rgba(77, 255, 187));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-bio p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--secondary-text);
    margin-bottom: 3rem;
}

.profile-pic {
    position: relative;
}

.profile-pic::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(77, 255, 187, 0.1);
    z-index: -1;
}

.profile-pic img {
    width: 28rem;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 3rem rgba(77, 255, 187, 0.3);
    transition: transform 0.3s ease;
    border: 3px solid var(--primary-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}



.social-media a {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 2.2rem;
    margin: 1rem 1rem 2rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.4s ease;
    border: 2px solid var(--secondary-text);
}

.social-media a:hover {
    color: rgba(77, 255, 187);
    box-shadow: 0 0 1rem rgba(77, 255, 187);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    background: transparent;
    margin: 2rem 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 1.3rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: 0.5s ease;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid var(--primary-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.heading {
    font-size: 3.3rem;
    text-align: center;
    margin: 3rem 0;
}

.contact-link {
    color: rgba(77, 255, 187);
    transition: color 0.3s;
}

.contact-link:hover {
    color: #fff;
}

/* Experience and Education Section */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding: 20px 40px;
    margin: 20px 0;
    border-left: 3px solid var(--primary-color);
    color: #fff;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: -11px;
    height: 20px;
    width: 20px;
    background-color: rgba(77, 255, 187);
    border-radius: 50%;
}

.timeline-content {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.timeline-content h1 {
    margin-bottom: 10px;
    color: rgba(77, 255, 187);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: rgba(77, 255, 187);
}

.timeline-content h4 {
    margin-bottom: 10px;
}

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

/* Project Section */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.project-item {
    background: var(--secondary-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(77, 255, 187, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
}

.project-item:hover::before {
    opacity: 1;
}

.project-item h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-description {
    font-size: 1.4rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    font-size: 1.3rem;
    color: rgba(77, 255, 187);
}

.github-link {
    font-size: 2.2rem;
    color: #fff;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: rgba(77, 255, 187);
}

.github-link i {
    font-size: 2rem;
    vertical-align: middle;
}

/* Footer Section */

.footer {
    padding: 2rem 10%;
    text-align: center;
    font-size: 1rem;
}

hr {
    margin: 1rem;
    border-bottom: thin darkslategrey solid;
}

/*Responsive Section */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    section {
        padding: 8rem 5%;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .profile-pic img {
        width: 25rem;
    }

    .project-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    #menu-btn {
        display: block;
        font-size: 2.5rem;
        cursor: pointer;
    }

    .menu-bar {
        position: fixed;
        top: 6.5rem;
        right: -100%;
        width: 50%;
        height: 120vh   ;
        background: #1a1a1a;
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 5rem;
        transition: 0.3s ease;
    }

    .menu-bar.active {
        right: 0;
    }

    .menu-bar a {
        display: block;
        margin: 2rem 0;
        font-size: 2rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

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

    .profile-pic img {
        width: 20rem;
        
    }
}