body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top to allow scrolling if content overflows */
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #1a1a2e); /* Added one more stop for smoother loop */
    background-size: 600% 600%; /* Increased size for slower, smoother animation */
    animation: gradientBG 20s ease infinite;
    color: #e0e0e0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding-top: 20px; /* Add padding to body top */
    padding-bottom: 20px; /* Add padding to body bottom */
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    text-align: center;
    padding: 25px;
    max-width: 500px; /* Slightly narrower for a sleeker look */
    width: 90%;
    background-color: rgba(22, 33, 62, 0.8); /* Dark blueish, slightly transparent */
    border-radius: 20px; /* More rounded corners */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px); /* Enhanced Glassmorphism effect */
    animation: fadeInContainer 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for glass effect */
}

@keyframes fadeInContainer {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile {
    margin-bottom: 35px;
    animation: slideInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
    opacity: 0; /* Start hidden for animation */
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid #e94560; /* A vibrant pink/red accent */
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-pic:hover {
    transform: scale(1.12) rotate(3deg); /* Added slight rotation */
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.55);
}

.profile-name {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    margin: 10px 0 8px;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(233, 69, 96, 0.3); /* Subtle glow */
}

.profile-bio, .profile-location {
    font-size: 1em;
    color: #c5c9cc; /* Lighter grey for better contrast */
    margin: 6px 0;
    line-height: 1.6;
}

.profile-bio .emoji, .profile-location .emoji {
    font-size: 1.1em;
    display: inline-block;
    transform: translateY(1px); /* Align emoji better with text */
}

.links {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Increased gap */
}

.link-item {
    background: linear-gradient(145deg, rgba(30, 60, 110, 0.85), rgba(15, 40, 80, 0.9));
    color: #ffffff;
    text-decoration: none;
    padding: 18px 25px; /* Increased padding */
    border-radius: 12px; /* More rounded buttons */
    display: flex;
    align-items: center;
    justify-content: space-between; 
    font-size: 1.15em;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    animation: popInLink 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0; 
    transform: scale(0.95);
}

/* Staggered animation for link items */
.link-item:nth-child(1) { animation-delay: 0.4s; }
.link-item:nth-child(2) { animation-delay: 0.5s; }
.link-item:nth-child(3) { animation-delay: 0.6s; }
.link-item:nth-child(4) { animation-delay: 0.7s; }
.link-item:nth-child(5) { animation-delay: 0.8s; }
.link-item:nth-child(6) { animation-delay: 0.9s; }
.link-item:nth-child(7) { animation-delay: 1.0s; }


@keyframes popInLink {
    0% { opacity: 0; transform: translateY(15px) scale(0.95); }
    70% { opacity: 1; transform: translateY(-5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.link-item:hover {
    background: linear-gradient(145deg, #e94560, #c7304a); /* Accent color gradient on hover */
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.45);
    border-color: rgba(255,255,255,0.3);
}

.link-icon {
    margin-right: 18px;
    font-size: 1.4em;
    width: 30px; 
    text-align: center;
    color: #f0f0f0;
    transition: transform 0.3s ease;
}

.link-item:hover .link-icon {
    color: #ffffff;
    transform: scale(1.1);
}

.link-item span {
    flex-grow: 1;
    text-align: left;
}

.arrow-icon {
    font-size: 1.1em;
    color: #bdc3c7;
    transition: transform 0.3s ease, color 0.3s ease;
}

.link-item:hover .arrow-icon {
    transform: translateX(6px) scale(1.1);
    color: #ffffff;
}

footer {
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid rgba(224, 224, 224, 0.15);
    font-size: 0.9em;
    color: #b0b4b8;
    animation: fadeInUpFooter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards; 
    opacity: 0;
}

@keyframes fadeInUpFooter {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .container {
        padding: 20px;
        width: 95%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
        border-width: 4px;
        margin-bottom: 15px;
    }
    .profile-name {
        font-size: 1.9em;
    }
    .profile-bio, .profile-location {
        font-size: 0.9em;
    }
    .link-item {
        font-size: 1em;
        padding: 15px 20px;
        gap: 12px; /* Adjust gap for smaller screens */
    }
    .link-icon {
        font-size: 1.2em;
        margin-right: 12px;
        width: 25px;
    }
    .arrow-icon {
        font-size: 1em;
    }
    footer {
        margin-top: 30px;
        padding-top: 15px;
        font-size: 0.8em;
    }
}

