@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Orbitron:wght@500;700&family=Ubuntu:wght@500;700&display=swap");

:root {
    --bg-top: #05070d;
    --bg-mid: #0b1220;
    --bg-bottom: #120a22;
    --text-main: #dff9ff;
    --text-soft: #9dd8e4;
    --neon-cyan: #00f6ff;
    --neon-pink: #ff2bd6;
    --neon-blue: #4a7dff;
    --neon-red: #ff3b3b;
    --neon-yellow: #f8ff3d;
    --panel-bg: rgba(8, 12, 28, 0.72);
    --panel-border: rgba(0, 246, 255, 0.4);
    --button-bg: rgba(15, 22, 48, 0.78);
    --button-border: rgba(255, 43, 214, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px;
    font-family: "Chakra Petch", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(1100px 800px at 10% -15%, rgba(0, 246, 255, 0.14), transparent 56%),
        radial-gradient(900px 700px at 100% 0%, rgba(255, 43, 214, 0.12), transparent 60%),
        radial-gradient(900px 700px at 80% 100%, rgba(74, 125, 255, 0.16), transparent 62%),
        linear-gradient(155deg, var(--bg-top), var(--bg-mid) 50%, var(--bg-bottom));
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.035),
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: soft-light;
    opacity: 0.28;
}

body::after {
    background: radial-gradient(circle at 50% 45%, transparent 46%, rgba(0, 0, 0, 0.42) 100%);
}

.grid-overlay {
    display: none;
}

.container {
    width: min(100%, 500px);
    z-index: 1;
}

.desktop-qr {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.desktop-qr-image {
    width: 130px;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(223, 249, 255, 0.35);
    background: rgba(8, 12, 28, 0.75);
    box-shadow:
        0 0 16px rgba(0, 246, 255, 0.25),
        0 0 28px rgba(255, 43, 214, 0.2);
}

.desktop-qr-text {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    text-align: center;
}

    @media (max-width: 768px) {
        .desktop-qr {
            display: none;
        }
    }
.profile-card {
    text-align: center;
    padding: 34px 24px 28px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 24px rgba(0, 246, 255, 0.25),
        0 0 60px rgba(255, 43, 214, 0.16),
        inset 0 0 24px rgba(74, 125, 255, 0.16);
    animation: card-entry 0.75s ease-out both;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 59, 59, 0.75);
    box-shadow:
        0 0 10px rgba(255, 59, 59, 0.45),
        0 0 26px rgba(255, 59, 59, 0.32),
        0 0 50px rgba(255, 59, 59, 0.2);
    object-fit: cover;
    animation: profile-red-pulse 2.8s ease-in-out infinite;
}

.kicker {
    margin: 2px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--neon-cyan);
}

h1 {
    margin: 0;
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    letter-spacing: 0.03em;
}

.name-ocean {
    color: #ffffff;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.45),
        0 0 14px rgba(255, 255, 255, 0.2);
}

.name-mallik {
    color: var(--neon-yellow);
    text-shadow:
        0 0 10px rgba(248, 255, 61, 0.85),
        0 0 22px rgba(248, 255, 61, 0.55),
        0 0 34px rgba(248, 255, 61, 0.32);
}

.bio {
    margin: 10px 0 28px;
    color: var(--text-soft);
    font-size: 1rem;
}

.link-container {
    display: grid;
    gap: 12px;
    width: min(100%, 420px);
    margin: 0 auto;
}

.link-btn {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--button-border);
    background: var(--button-bg);
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-icon {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    display: inline-block;
    filter: invert(1) brightness(1.08);
    opacity: 0.95;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.website-icon {
    filter: invert(1) brightness(1.08);
}

.link-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(255, 43, 214, 0.22), rgba(0, 246, 255, 0.22));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
    transform: translateY(-2px);
    border-color: var(--neon-yellow);
    box-shadow:
        0 0 10px rgba(248, 255, 61, 0.55),
        0 0 22px rgba(248, 255, 61, 0.4);
}

.link-btn:hover .link-icon,
.link-btn:focus-visible .link-icon {
    transform: scale(1.05);
    opacity: 1;
}

.link-btn:hover::before,
.link-btn:focus-visible::before {
    opacity: 1;
}

@keyframes card-entry {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes profile-red-pulse {
    0%,
    100% {
        box-shadow:
            0 0 8px rgba(255, 59, 59, 0.3),
            0 0 22px rgba(255, 59, 59, 0.2),
            0 0 42px rgba(255, 59, 59, 0.1);
    }
    50% {
        box-shadow:
            0 0 16px rgba(255, 59, 59, 0.75),
            0 0 38px rgba(255, 59, 59, 0.5),
            0 0 72px rgba(255, 59, 59, 0.34);
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .desktop-qr {
        display: none;
    }

    .profile-card {
        padding: 28px 18px 22px;
        border-radius: 14px;
    }

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

    .link-btn {
        font-size: 0.92rem;
        padding: 12px;
    }
}