/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #fff;
    /* The animated gradient is now a fallback for the particles */
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #2c3e50);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles.js Container Styling */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Behind the profile card */
}

.profile-card {
    padding: 40px 30px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Must be on top of the particles background */
    position: relative;
    z-index: 2;
}

/* Rest of the styling is the same */
.profile-card:hover {
    transform: perspective(1000px) rotateY(5deg) scale(1.05);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.4);
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.profile-info h1, .profile-info p {
    color: #f0f0f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.profile-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-info p {
    font-size: 16px;
    margin-bottom: 25px;
}

.social-links a {
    color: #e0e0e0;
    font-size: 24px;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: scale(1.2);
    text-shadow: 0 0 5px #00bfff, 0 0 10px #00bfff, 0 0 20px #00bfff;
}