:root {
    --magenta: #ff00bf;
    --cyan: #00e5ff;
    --sky-top: #2b0b73;
    --sky-bottom: #050016;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: radial-gradient(circle at top, var(--sky-top) 0, var(--sky-bottom) 70%);
    overflow: hidden;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at top, var(--sky-top) 0, var(--sky-bottom) 70%);
}

.bg-sun {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 30%, #fff 0, #ffdd6b 30%, #ff7b5c 55%, #ff0080 80%);
    box-shadow:
            0 0 40px rgba(255, 170, 0, 0.8),
            0 0 90px rgba(255, 0, 128, 0.8);
    overflow: hidden;
    animation: sunPulse 10s ease-in-out infinite alternate;
    z-index: 3;
}

.bg-sun::after {
    content: "";
    position: absolute;
    inset: 58% 0 0 0;
    background-image: repeating-linear-gradient(
            to bottom,
            rgba(11, 0, 36, 0.92) 0,
            rgba(11, 0, 36, 0.92) 4px,
            transparent 4px,
            transparent 8px
    );
    opacity: 0.9;
}

.bg-fog {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 45%;
    height: 40%;
    background:
            radial-gradient(circle at center, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.7) 70%),
            radial-gradient(circle at center, rgba(120, 0, 255, 0.35), transparent 65%);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.bg-grid-floor {
    position: absolute;
    width: 220%;
    height: 100%;
    left: -60%;
    bottom: -45%;
    background-color: #070014;
    transform-origin: center top;
    transform: perspective(900px) rotateX(78deg);
    box-shadow: 0 0 50px rgba(255, 0, 191, 0.7);
    z-index: 0;
    overflow: hidden;
}

.bg-grid-floor::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right, rgba(255, 0, 191, 0.9) 2px, transparent 2px),
            linear-gradient(to top, rgba(255, 0, 191, 0.9) 2px, transparent 2px);
    background-size: 80px 80px, 80px 80px;
    background-position: 0 0, 0 0;
    animation: gridTravel 25s linear infinite;
    will-change: background-position;
}

.bg-scanlines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
    );
    background-size: 100% 3px;
    opacity: 0.14;
    mix-blend-mode: soft-light;
    animation: scanMove 4s linear infinite;
    pointer-events: none;
    z-index: 4;
}

@keyframes gridTravel {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 0 80px, 0 80px;
    }
}

@keyframes scanMove {
    0% {
        background-position-y: 0;
    }
    100% {
        background-position-y: 3px;
    }
}

@keyframes sunPulse {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        transform: translateX(-50%) translateY(6px) scale(1.03);
    }
}

/* CARD */

.page-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.profile-card {
    text-align: center;
    max-width: 520px;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
            radial-gradient(circle at top left, rgba(255, 0, 191, 0.35), transparent 55%),
            radial-gradient(circle at bottom right, rgba(0, 229, 255, 0.3), transparent 55%),
            rgba(8, 0, 32, 0.92);
    backdrop-filter: blur(18px);
    padding: 2.4rem 2.2rem;
    box-shadow:
            0 0 30px rgba(0, 0, 0, 0.9),
            0 0 45px rgba(255, 0, 191, 0.5),
            0 0 55px rgba(0, 229, 255, 0.45);
}

.role {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #d3cfff;
    opacity: 0.95;
}

.name {
    font-size: 2rem;
    font-weight: 600;
    margin: 0.15rem 0 0;
    background: linear-gradient(120deg, #ffffff, #ffe7ff, #ffb7df);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.email {
    font-size: 0.9rem;
    color: #dedbff;
}

.email a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(222, 219, 255, 0.7);
    padding-bottom: 1px;
}

.email a:hover {
    color: var(--magenta);
    border-bottom-color: var(--magenta);
    text-shadow: 0 0 10px rgba(255, 0, 191, 0.9);
}

.links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.link-pill {
    padding: 0.45rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--cyan);
    text-decoration: none;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: 0.25s ease;
}

.link-pill:hover {
    color: #fff;
    border-color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

@media (max-width: 480px) {
    .profile-card {
        padding: 2rem 1.6rem;
    }
    .name {
        font-size: 1.7rem;
    }
}
