.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.profile-card {
    background: #000;
    border: 4px solid #0f0;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 10px 10px 0 #ff00de;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0f0;
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.profile-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed #ff00de;
    padding-bottom: 20px;
}

.glitch-avatar-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
    border: 2px solid #0f0;
    padding: 5px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.3s;
}

.profile-avatar:hover {
    filter: grayscale(0%) contrast(1);
}

.profile-name {
    font-size: 2em;
    color: #fff;
    text-shadow: 3px 3px 0 #ff00de;
    margin: 10px 0;
    position: relative;
}

.profile-role {
    color: #0f0;
    font-weight: bold;
}

.profile-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px dotted #333;
    padding-bottom: 5px;
}

.detail-item .label {
    color: #ff00de;
    text-transform: uppercase;
}

.detail-item .value {
    color: #fff;
    text-align: right;
}

.detail-item .link {
    color: #0f0;
    text-decoration: none;
}

.detail-item .link:hover {
    text-decoration: underline;
    background: #0f0;
    color: #000;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    text-decoration: none;
    padding: 10px;
    transition: 0.2s;
}

.social-btn:hover {
    background: #0f0;
    color: #000;
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 #ff00de;
}

.actions {
    text-align: center;
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #ff00de;
    text-decoration: none;
    font-size: 0.9em;
}

.back-link:hover {
    text-decoration: line-through;
}/* Terminal Overlay */
.terminal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    padding: 20px;
    font-family: 'Share Tech Mono', monospace;
    overflow-y: auto;
    pointer-events: none;
    /* Let clicks pass through if needed, but mostly blocking */
}

.terminal-content {
    color: #0f0;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #0f0;
}

.log-line {
    color: #ff00de;
    margin-bottom: 2px;
}

/* Ensure pieces can fly */
.profile-card>* {
    /* transition is handled in JS */
    position: relative;
    /* needed for transform context sometimes, but default is static which works with transform */
}
/* Print Styles */
.print-only {
    display: none !important;
}

@media print {

    /* Hide everything normal */
    body>*:not(.print-only) {
        display: none !important;
    }

    /* Show print area */
    .print-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        background: white;
        /* Print usually works best on white */
        color: black;
    }

    .print-card {
        text-align: center;
        border: 4px solid black;
        padding: 40px;
        font-family: 'Courier New', Courier, monospace;
    }

    .print-card h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .print-card p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .qr-code img {
        width: 250px;
        height: 250px;
        display: block;
        margin: 0 auto;
    }

    .print-link {
        margin-top: 10px;
        font-weight: bold;
    }
}
/* Print Styles */
.print-only {
    display: none !important;
}

@media print {

    /* Hide everything normal */
    body>*:not(.print-only) {
        display: none !important;
    }

    /* Show print area */
    .print-only {
        display: flex !important;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100vw;
        background: white;
        /* Print usually works best on white */
        color: black;
    }

    .print-card {
        text-align: center;
        border: 4px solid black;
        padding: 40px;
        font-family: 'Courier New', Courier, monospace;
    }

    .print-card h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .print-card p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .qr-code img {
        width: 250px;
        height: 250px;
        display: block;
        margin: 0 auto;
    }

    .print-link {
        margin-top: 10px;
        font-weight: bold;
    }
}
