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

* {
    box-sizing: border-box;
}

:root {
    --font-family: 'Poppins', sans-serif;
    --text-color: #121212;
    --bg-color: #f0f0f0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgb(90, 194, 236) 0%, rgb(224, 194, 242) 90.1%),
        radial-gradient(circle at 80% 70%, rgb(138, 234, 234) 0%, rgb(232, 170, 213) 90%);
    background-attachment: fixed;
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center; /* Center horizontally */
    min-height: 100vh;
}

.container {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 420px;
    width: 100%;
    animation: fadeIn 1s ease-out;
    margin: auto; /* This ensures vertical centering in a flex container that can scroll */
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.profile-pic {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.profile-pic:hover {
    transform: scale(1.1) rotate(5deg);
}

h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 600;
    color: #333;
}

p {
    margin-top: 5px;
    color: #555;
    font-size: 1rem;
    font-weight: 300;
}

.links {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background-color: var(--color, #333);
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease-in-out;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.link-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.link-button:hover:before {
    left: 100%;
}

.link-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.link-button i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.link-button:hover i {
    transform: rotate(-10deg) scale(1.2);
}

footer {
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
}

/* --- Responsive Design --- */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 20px;
        max-width: 100%;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.9rem;
    }

    .link-button {
        padding: 12px;
        font-size: 0.9rem;
        gap: 10px;
    }
}