@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #0c1b3f 25%, #1e1b4b 50%, #0c1b3f 75%, #0f172a 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(59, 130, 246, 0.05) 25%, rgba(59, 130, 246, 0.05) 26%, transparent 27%, transparent 74%, rgba(59, 130, 246, 0.05) 75%, rgba(59, 130, 246, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(59, 130, 246, 0.05) 25%, rgba(59, 130, 246, 0.05) 26%, transparent 27%, transparent 74%, rgba(59, 130, 246, 0.05) 75%, rgba(59, 130, 246, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 1;
}

body > div {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.profile-header {
    animation: slideDown 0.5s ease-out;
}

.links-container {
    animation: slideUp 0.5s ease-out 0.15s both;
}

.social-links {
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-card:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 480px) {
    .username {
        font-size: 1.5rem;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }
}