*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg-deep: #0d0221;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --retro-pink: #ff71ce;
    --azure-blue: #007fff;
    --pup-blue: #0047ab;
    --pup-black: #1a1a1a;
    --pup-white: #ffffff;
    --font-header: 'Orbitron', sans-serif;
    --font-pup: 'Fredoka', sans-serif;
    --font-terminal: 'Press Start 2P', cursive;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-deep);
    color: var(--pup-white);
    font-family: var(--font-pup), fantasy;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Retro Background Effects */
.digital-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 127, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 127, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-20%);
    transform-origin: top;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 40px; }
}

@keyframes background-pulse {
    0% { opacity: 0.1; }
    100% { opacity: 0.25; }
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(18, 16, 16, 0) 0px,
            rgba(18, 16, 16, 0) 18px,
            rgba(0, 0, 0, 0.25) 19px,
            rgba(0, 0, 0, 0.25) 20px
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='20' viewBox='0 0 200 20'%3E%3Cpath d='M10,10 L190,10 M10,5 Q5,5 5,10 T10,15 M10,5 Q15,5 15,10 T10,15 M190,5 Q185,5 185,10 T190,15 M190,5 Q195,5 195,10 T190,15' fill='none' stroke='rgba(0, 255, 255, 0.1)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 100% 20px, 400px 20px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.6;
}

/* Layout Container */
.container {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(13, 2, 33, 0.85);
    border-radius: 40px;
    border: 4px solid var(--azure-blue);
    box-shadow: 
        0 0 20px var(--azure-blue),
        inset 0 0 20px rgba(0, 127, 255, 0.3);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--azure-blue) transparent;
}

.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-thumb {
    background: var(--azure-blue);
    border-radius: 4px;
}

/* Profile Section */
#profile-header {
    margin-bottom: 40px;
}

.profile-pic-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    position: relative;
    border: 4px solid var(--retro-pink);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px var(--retro-pink);
}

#profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pup-name {
    font-family: var(--font-header), cursive;
    font-size: 2.2rem;
    color: var(--retro-pink);
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 2px 2px 0 var(--azure-blue);
}

.pup-bio {
    font-family: var(--font-terminal), fantasy;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    line-height: 1.6;
    background: rgba(0, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

/* Link Buttons */
.link-button {
    display: block;
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    text-decoration: none;
    color: var(--pup-white);
    background: transparent;
    border: 2px solid var(--azure-blue);
    border-radius: 50px;
    font-family: var(--font-header), sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: inset 0 0 10px rgba(0, 127, 255, 0.2);
}

.link-button:hover {
    background: linear-gradient(90deg, var(--azure-blue), var(--retro-pink));
    border-color: var(--pup-white);
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--retro-pink);
    color: var(--pup-black);
}

.link-button::after {
    content: '🐾';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%) translateX(50px);
    opacity: 0;
    transition: 0.4s;
    font-size: 1.4rem;
}

.link-button:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }
    .pup-name {
        font-size: 1.6rem;
    }
    .pup-bio {
        font-size: 0.7rem;
    }
}
