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

body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: -20px;
    background: url('bkg.svg') center/cover no-repeat;
    animation: drift 18s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes drift {
    0%   { transform: scale(1.08) translate(0px, 0px); }
    25%  { transform: scale(1.1) translate(-8px, -5px); }
    50%  { transform: scale(1.08) translate(5px, -8px); }
    75%  { transform: scale(1.1) translate(-5px, 6px); }
    100% { transform: scale(1.08) translate(7px, 3px); }
}

/* wrapper needed to give the card a 3D perspective context */
.card-wrapper {
    perspective: 800px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    animation: tilt 8s ease-in-out infinite;
}

@keyframes tilt {
    0%   { transform: rotateX(4deg) rotateY(-3deg); }
    25%  { transform: rotateX(-3deg) rotateY(4deg); }
    50%  { transform: rotateX(4deg) rotateY(3deg); }
    75%  { transform: rotateX(-3deg) rotateY(-4deg); }
    100% { transform: rotateX(4deg) rotateY(-3deg); }
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

h1 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #111;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.links a {
    display: block;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-size: 0.95rem;
    transition: background 0.15s;
}

.links a:hover {
    background: #ececec;
}

.dashboard-link {
    font-size: 0.8rem;
    color: #999;
    text-decoration: none;
}

.dashboard-link:hover {
    color: #555;
}
