@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap');

body {
    margin: 0;
    min-height: 100vh;
    background-image: url(assets/bg1.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

main {
    width: 100%;
    max-width: 1000px; 
    background: rgba(24, 24, 24, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins';
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    box-sizing: border-box;
    padding: 3rem;
}

#profile {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#pfp {
    margin-right: 2rem;
    border-radius: 50%;
    border: 3px solid rgba(89, 42, 165, 0.8);
    width: 8rem;
    height: 8rem;
}

#profile div h1 {
    margin: 0;
}
#profile div p {
    margin: 0;
}

.section-title {
    font-weight: bold;
    margin-top: 3rem;
}

.icon {
    width: 2.5rem;
    height: 2.5rem;
}

#socials, #oses, #langs {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Source Code Pro', monospace;
    color: white;
    background-color: rgba(88, 88, 88, 0.3);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.link-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.link-btn p {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 0.5rem;
    }

    main {
        padding: 1.5rem;
        height: auto;
    }

    #profile {
        flex-direction: column;
        text-align: center;
    }

    #pfp {
        width: 6rem;
        height: 6rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .section-title {
        text-align: center;
        width: 100%;
    }

    #socials, #oses, #langs {
        justify-content: center;
    }

    .link-btn p {
        /* Allow text to wrap if needed on very small screens */
        white-space: normal; 
    }
}

.project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: white;
    background-color: rgba(88, 88, 88, 0.2);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.project-link-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Source Code Pro', monospace;
    color: white;
    background-color: rgba(128, 128, 128, 0.3);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.project-link-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.project-link-btn p {
    margin: 0;
    white-space: nowrap;
}

.project-thumbnail {
    border-radius: 1rem;
    margin-top: 1rem;
}