/* Basic Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050508; /* Very dark, almost black background */
    color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Prevent scrollbars */
    position: relative; /* For positioning particles */
}

/* particles.js Styling */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Behind other content */
}

/* Container for the glass panel - ensures it's above particles */
.glass-container {
    position: relative;
    z-index: 1; /* Above particles */
    perspective: 1000px; /* Keep: For 3D tilt effect */
}

/* The Glass Panel (Profile Card) */
.glass-panel.profile-card {
    /* Adjusted background opacity (back to ~0.35 from ~0.75) */
    background: rgba(15, 15, 20, 0.35); /* More transparent */
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(180%); /* Safari */
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    text-align: center; /* Center text content */
    animation: fadeInPanel 1.2s ease-out forwards;
    transform-style: preserve-3d; /* Keep: For 3D tilt effect */
    transition: transform 0.1s ease-out; /* Keep: Smooth tilt transition */
    overflow: hidden; /* Hide parts of the banner and avatar that might go outside */
    width: 300px; /* Set a fixed width based on the image's proportion */
    display: flex;
    flex-direction: column;
    position: relative; /* Needed for absolute positioning of view counter */
}

/* --- Animation --- */
@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Profile Card Specific Styles --- */

.banner {
    width: 100%;
    height: 80px; /* Adjust height as needed */
    background-image: url('images/banner.jpg'); /* Replace with your banner image path */
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.profile-header {
    padding: 0 20px 20px;
    margin-top: -40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #5865F2; /* Fallback background */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid rgba(15, 15, 20, 0.8);
    overflow: hidden;
}

/* Style for the actual avatar image */
.avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Style for the new status icon container */
.status-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Space between icons */
    /* Adjusted background opacity (back to ~0.4 from ~0.7) */
    background: rgba(20, 20, 25, 0.4); /* More transparent */
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 4px 12px; /* Padding around icons */
    border-radius: 50px; /* Pill shape */
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -4px; /* Adjust space from name */
}

/* Style for the individual status icons (Font Awesome) */
.status-icon-item {
    font-size: 1em; /* Size of the icons */
    color: rgba(255, 255, 255, 0.8); /* Keep white/slightly transparent color as in prev image */
}


.status-text {
    font-size: 0.9em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px; /* Adjust space below the new icon container */
}

.activity-bar {
    /* Adjusted background opacity (back to ~0.4 from ~0.7) */
    background: rgba(20, 20, 25, 0.4); /* More transparent */
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    padding: 10px 15px;
    margin: 0 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

/* Style for the activity logo image container */
.activity-logo-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.activity-bar .status-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #43b581; /* Online green */
    border: 2px solid rgba(20, 20, 25, 0.8);
    flex-shrink: 0;
    position: relative;
    left: -14px;
    bottom: -8px;
    z-index: 1;
}

.activity-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-left: -10px;
}

.activity-name {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.activity-details-line {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.app-name, .file-name {
    font-weight: 400;
}

.activity-icon.vscode-icon {
    width: 28px;
    height: 28px;
    background-color: #007acc; /* VS Code blue */
    border-radius: 4px;
    border-top-left-radius: 8px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
}

/* Style the link wrapping the icon */
.social-icon-link {
    display: inline-block;
}

/* Style the Font Awesome <i> icon */
.social-icon {
    font-size: 24px;
    color: #ffffff; /* CHANGED: Make icons fully white */
    transition: color 0.2s ease;
}

.social-icon-link:hover .social-icon {
    color: #eeeeee; /* Slightly dimmer on hover for subtle effect */
}


.view-counter {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .glass-panel.profile-card {
        width: 90%;
    }

    .profile-header {
        padding: 0 15px 15px;
    }

    .status-icon-container {
        padding: 3px 10px;
        gap: 4px;
    }

    .status-icon-item {
        font-size: 0.9em;
    }

    .activity-bar {
        margin: 0 10px 15px;
        padding: 8px 12px;
        gap: 8px;
    }

    .social-links {
        margin-bottom: 20px;
        gap: 10px;
    }

    .view-counter {
        bottom: 10px;
        left: 15px;
        font-size: 0.7em;
    }

    .avatar {
        width: 70px;
        height: 70px;
    }

    .avatar-image {
        width: 100%;
        height: 100%;
    }

    .activity-logo-image {
        width: 18px;
        height: 18px;
    }

    .activity-bar .status-dot {
        width: 7px;
        height: 7px;
        left: -12px;
        bottom: -7px;
    }

    .activity-icon.vscode-icon {
        width: 24px;
        height: 24px;
    }

    .social-icon {
        font-size: 20px;
    }
}