/* CSS Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg1: #0a0a0a;
    --bg2: #1a0a2e;
    --accent: #b412ff;
    --text: #e0e0e0;
    --link: #d18bff;
    --card-bg: rgba(10, 10, 10, 0.95); /* Solid background for content */
    --radius: 12px;
}

/* METROID ALIEN BREATHING ANIMATION (Applied to BODY - The Whole Background) */
@keyframes alien-pulse {
    0% {
        background-position: 0% 0%, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        background-position: 2% 2%, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px, 10px 10px;
        filter: hue-rotate(15deg) brightness(1.05);
    }
    100% {
        background-position: 0% 0%, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
        filter: hue-rotate(0deg) brightness(1);
    }
}

body {
    font-family: "Verdana", "Geneva", sans-serif;
    color: var(--text);
    background-color: #0a0a0a;

    line-height: 1.4;
    font-size: 14px;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    padding: 10px;

    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;

    background:
        radial-gradient(circle at 20% 30%, rgba(180,18,255,0.12), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,20,147,0.08), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(90,0,120,0.15), transparent 60%);

    filter: blur(40px);
    animation: bio-pulse 10s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.02) 1px, transparent 1px);

    background-size: 40px 40px;
    opacity: 0.25;

    animation: grid-drift 12s linear infinite;
}

@keyframes bio-pulse {
    0%   { transform: scale(1) translate(0px, 0px); filter: hue-rotate(0deg); }
    50%  { transform: scale(1.05) translate(10px, -10px); filter: hue-rotate(20deg); }
    100% { transform: scale(1) translate(0px, 0px); filter: hue-rotate(0deg); }
}

@keyframes grid-drift {
    from { transform: translate(0, 0); }
    to   { transform: translate(40px, 40px); }
}

@keyframes breathe {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        border-color: rgba(180,18,255,0.15);
    }
    50% {
        transform: scale(1.01);
        box-shadow: 0 0 25px rgba(180,18,255,0.25);
        border-color: rgba(180,18,255,0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        border-color: rgba(180,18,255,0.15);
    }
}

@keyframes scan-energy {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: #ff1493; background-color: #000; }

/* 50% Width Container (Solid, Static Background for Readability) */
.container {
    width: 50vw;
    min-width: 600px;
    background: var(--card-bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 5px 5px 0px #444;
    overflow: hidden;
    margin: 0 auto;

    /* FIX: unify horizontal spacing system */
    padding: 20px;
}

/* Status Bar (Top) */
.status-bar-container {
    display: flex;
    justify-content: center;
    gap: 20px;
	align-items: center;
    margin: 15px 0;
    padding: 0 20px;

    width: 100%;
}

.status-tile {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    height: 44px;
    border-radius: 12px;
    padding: 12px 25px;
	flex: 1;
	max-width: 300px;
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 12px;
    min-width: 180px;
    transition: all 0.3s;
    font-family: monospace;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #888;
    box-shadow: none;
}

.status-text {
    font-size: 1rem;
    font-weight: bold;
    color: #aaa;
}

/* Header: Simple Flex Layout for Perfect Centering */
header {
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    background-color: rgba(41, 4, 65, 0.9);

    position: relative;
    display: flex;
    align-items: center;

    height: 160px;
    padding: 0 20px;
    position: relative;
    overflow: hidden;

    /* optional but helps alignment consistency */
    gap: 20px;
}

/* Profile Pic: Left Item, Overlapping Slightly */
.profile-pic {
    position: absolute;
    left: -2px;  /* pushes it OUTSIDE the border */
    top: 40%;
    transform: translateY(-50%);

    width: 160px;
    height: 160px;

    object-fit: cover;

    border: 3px solid var(--accent);
    border-radius: var(--radius);

    box-shadow: 2px 2px 0 var(--accent);
    z-index: 5;
}

/* Middle: Takes remaining space, centers content perfectly */
.header-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;
}

h1 {
    margin: 0;
    color: var(--accent);
    font-size: 4rem;
    text-shadow: 0 0 15px var(--accent);
    font-family: "Courier New", monospace;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.pronouns-stack {
    margin: 0;
    display: flex;
    justify-content: center;
}

/* Badges */
.badge {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    transition: transform 0.2s;
    cursor: default;
}

.badge:hover { transform: translateY(-2px); }

/* PINK PRONOUNS */
.badge-pronouns {
    background: rgba(255, 20, 147, 0.15);
    border-color: #ff1493;
    color: #ff1493;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
    font-size: 1.1rem;
}

/* Unified Identity Row */
.identity-unified-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
    padding: 0 10px;
    gap: 10px;
}

.identity-unified-row .badge {
    flex: 1; 
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dynamic Gradients */
.badge-lesbian-sapphic {
    background: linear-gradient(90deg, #d62976, #ff9a9e, #ffffff, #fecfef, #a1c4fd);
    color: #000;
    text-shadow: none;
    border: 1px solid #d62976;
}

.badge-demi {
    background: linear-gradient(90deg, #338a37, #ffffff, #d2d2d2, #ffffff, #6e0070);
    color: #000;
    text-shadow: none;
    border: 1px solid #9b4f96;
}

/* HRT Badge */
.badge-hrt {
    background: #2a1045;
    color: #d18bff;
    border: 1px solid #d18bff;
    text-shadow: 0 0 5px rgba(209, 139, 255, 0.5);
    cursor: help;
    position: relative;
    font-size: 1.1rem;
    min-width: 120px; 
}

.badge-hrt:hover {
    color: transparent;
    text-shadow: none;
}

.badge-hrt:hover::after {
    content: "Aug 19, 2024";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d18bff;
    text-shadow: 0 0 5px rgba(209, 139, 255, 0.5);
    background: #2a1045;
    border: 1px solid #d18bff;
    z-index: 2;
}

/* Main Content */
main { padding: 20px; }

/* Unified Section Styling */
.section {
  margin-top: 40px;
}
.section-box, 
section {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(180, 18, 255, 0.1);
    margin: 25px 0; 
    width: 100%;
}

.bio-text {
    font-size: 1.1rem;
    text-align: justify;
    line-height: 1.6;
}

h2 {
    color: var(--link);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Social Buttons */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-btn {
    background: rgba(41, 4, 65, 0.6);
    color: var(--link);
    padding: 12px 25px;
    text-decoration: none;
    border: 1px solid var(--link);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-block;
}

.social-btn:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

/* Artwork Grid */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.art-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--link);
    aspect-ratio: 1;
    background: #000;
}

.art-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border: none;
    box-shadow: none;
}

.art-item:hover img { transform: scale(1.1); }

/* YouTube */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Music Player */
.music-player {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--link);
}

.album-art {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent), var(--bg2));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    box-shadow: 0 0 10px var(--accent);
}

.track-info { flex-grow: 1; }
.track-title { color: #fff; font-weight: bold; font-size: 1.3rem; display: block; }
.track-artist { color: var(--link); font-size: 1rem; }

audio {
    width: 100%;
    margin-top: 10px;
    height: 40px;
    filter: invert(0.9) hue-rotate(260deg) saturate(1.5);
    border-radius: var(--radius);
}

/* Footer */
footer {
    background-color: rgba(41, 4, 65, 0.9);
    padding: 25px;
    text-align: center;
    border-top: 3px solid var(--accent);
    color: #a0a0a0;
    font-size: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Images */
img { max-width: 100%; height: auto; display: block; margin: 1rem auto; border-radius: var(--radius); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5); border: 2px solid var(--link); }

/* Personal Info Cards */
.personal-row-full {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
}

.info-card {
    flex: 1;
    min-width: 250px;
	max-width: 50%;
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.info-card:hover { transform: translateY(-2px); }

.card-garnet {
    background: linear-gradient(135deg, #4a0404 0%, #800020 50%, #2b0000 100%);
    border: 1px solid #ff4d4d;
    color: #fff;
    font-family: 'Times New Roman', serif;
}

.cap-symbol {
    font-size: 2.5rem;
    color: #ffcccc;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    display: inline-block;
    vertical-align: middle;
    font-family: 'NotoColorEmoji', sans-serif;
}

.birthday-text { font-size: 1.4rem; font-weight: bold; letter-spacing: 2px; }

.card-mediator {
    background: linear-gradient(135deg, #1a2a40 0%, #2d4a6e 50%, #1a2a40 100%);
    border: 1px solid #6495ed;
    color: #e0f0ff;
}

.mbti-badge {
    background: rgba(100, 149, 237, 0.2);
    border: 1px solid #6495ed;
    padding: 6px 18px;
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 8px #6495ed;
}

.med-label {
    font-size: 1rem;
    color: #a0c0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-right: 15px;
}