/* Global Styles */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: 'Quicksand', 'Helvetica Neue', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

body {
    background:
        radial-gradient(ellipse at bottom, #0a0e1a 0%, #070913 20%, #05070d 40%, #030408 60%, #000000 100%);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Vía Láctea - Capa principal con suavizado mejorado */
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    z-index: -2;
    background:
        radial-gradient(ellipse 50% 25% at 50% 50%,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.03) 30%,
            rgba(255, 255, 255, 0.01) 60%,
            transparent 100%),
        radial-gradient(ellipse 40% 20% at 45% 48%,
            rgba(200, 180, 255, 0.15) 0%,
            rgba(180, 160, 240, 0.10) 25%,
            rgba(160, 140, 220, 0.06) 50%,
            rgba(140, 120, 200, 0.03) 75%,
            transparent 100%),
        radial-gradient(ellipse 35% 18% at 55% 52%,
            rgba(180, 160, 255, 0.12) 0%,
            rgba(160, 140, 235, 0.08) 30%,
            rgba(140, 120, 215, 0.04) 60%,
            transparent 100%),
        radial-gradient(ellipse 60% 30% at 50% 50%,
            rgba(140, 120, 220, 0.08) 0%,
            rgba(130, 110, 200, 0.05) 35%,
            rgba(120, 100, 180, 0.02) 70%,
            transparent 100%);
    transform: rotate(-25deg);
    animation: milkyway 120s ease-in-out infinite alternate;
    filter: blur(0.5px);
    will-change: transform;
}

@keyframes milkyway {
    0% { transform: rotate(-25deg) translateY(0); }
    100% { transform: rotate(-27deg) translateY(-2%); }
}

/* Capa de ruido para eliminar banding (efecto 4K) */
html::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}


/* Estrellas brillantes con posiciones aleatorias - Cada una parpadea a su ritmo */
.star {
    position: fixed;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    opacity: 1;
}

/* Main container */
#main {
    position: relative;
    max-width: 800px;
    min-width: 300px;
    margin: 40px auto;
    z-index: 1;
}

/* Avatar styles */
#avatar {
    text-align: center;
    margin-bottom: 20px;
}

#avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

#avatar img:hover {
    filter: unset;
    transform: scale(1.2);
    cursor: none;
}

/* Name styles with border animation */
#name {
    color: white;
    font-size: 1.5em;
    text-align: center;
    font-weight: 500;
    user-select: none;
}

#name span {
    position: relative;
    padding: 5px 10px;
}

#name span:after,
#name span:before {
    content: " ";
    width: 10px;
    height: 10px;
    position: absolute;
    border: 0px solid transparent;
    transition: all 1s;
}

#name span:after {
    top: -1px;
    left: -1px;
    border-top: 3px solid transparent;
    border-left: 3px solid transparent;
}

#name span:before {
    bottom: -1px;
    right: -1px;
    border-bottom: 3px solid transparent;
    border-right: 3px solid transparent;
}

#name span:hover:before,
#name span:hover:after {
    border-color: white;
    width: 102%;
    height: 110%;
}

/* Links wrapper */
#linksWrapper {
    max-width: 440px;
    margin: 0 auto;
    margin-top: 10px;
    padding: 20px 10px;
    padding-bottom: 0;
}

.link {
    display: block;
    background: white;
    border-radius: 30px;
    padding: 15px;
    font-size: 16px;
    text-align: center;
    border: 3px solid black;
    font-weight: 500;
    transition: box-shadow 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99),
                border-color 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99),
                transform 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99),
                background-color 0.25s cubic-bezier(0.08, 0.59, 0.29, 0.99);
}

.link:not(:last-of-type) {
    margin-bottom: 10px;
}

.link:hover {
    background: transparent;
    border-color: white;
    color: white;
    cursor: pointer;
}