* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url('bg.png') no-repeat center center fixed, linear-gradient(135deg, #1a2a44 0%, #0d1b2a 100%);
    background-size: cover;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 20px;
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place particles behind other content */
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px; /* Increased padding for desktop */
    max-width: 1000px; /* Increased max-width for desktop */
    width: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1; /* Ensure container is above particles */
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.profile-info h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
    font-size: 12px;
    margin-bottom: 10px;
}

.bio {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

.interests {
    margin-top: 15px;
}

.interests h3 {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.interests h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #fff;
}

.interest-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.interest-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.interest-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar {
    position: fixed;
    left: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 2; /* Ensure sidebar is above particles */
}

.sidebar i {
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.sidebar i:hover {
    color: #00aaff;
}

/* Mobile View - Polished styling to match the image */
@media (max-width: 768px) {
    body {
        padding: 15px; /* Comfortable padding around the edges */
    }

    .container {
        max-width: 100%; /* Full width for mobile */
        margin-left : 40px; 
        padding: 20px; /* Reasonable padding for mobile */
        background: rgba(255, 255, 255, 0.1); /* Glassmorphism effect */
        backdrop-filter: blur(10px); /* Restore blur */
        border-radius: 15px; /* Restore rounded corners */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Restore shadow */
    }

    .profile-header {
        gap: 15px; /* Balanced gap between profile picture and text */
    }

    .profile-pic {
        width: 120px; /* Reasonable size for mobile */
        height: 120px;
        border: 3px solid #fff; /* Restore original border */
    }

    .profile-info h1 {
        font-size: 24px; /* Legible font size for name */
    }

    .location {
        font-size: 8px; /* Legible font size for location */
    }

    .bio {
        font-size: 13px; /* Legible font size for bio */
        line-height: 2; /* Comfortable line spacing */
    }

    .interests {
        margin-top: 15px; /* Restore spacing */
    }

    .interests h3 {
        font-size: 12px; /* Legible heading size */
    }

    .interests h3::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #fff; /* Restore the line after the heading */
    }

    .interest-buttons {
        gap: 8px; /* Balanced gap between buttons */
    }

    .interest-btn {
        padding: 6px 12px; /* Reasonable padding for buttons */
        font-size: 12px; /* Legible font size */
        border-radius: 20px; /* Restore rounded corners */
        background: rgba(255, 255, 255, 0.2); /* Restore original background */
        border: none; /* Remove the harsh border */
    }

    .interest-btn:hover {
        background: rgba(255, 255, 255, 0.3); /* Restore hover effect */
    }

    /* Ensure sidebar is hidden in mobile view */

}