@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap");

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

:root {
    --purple-deep: #0f001f;
    --purple-mid: #2d0060;
    --purple-bright: #7c3aed;
    --purple-light: #a855f7;
    --purple-glow: #c084fc;
    --trans-blue: #5bcefa;
    --trans-pink: #f5a9b8;
    --trans-white: #ffffff;
    --text-main: #f0e6ff;
    --text-muted: #b09acc;
    --card-bg: rgba(20, 0, 40, 0.85);
    --card-border: rgba(168, 85, 247, 0.22);
    --card-hover-border: rgba(192, 132, 252, 0.55);
    --titlebar-bg: rgba(45, 0, 80, 0.9);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--purple-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

.trans-word {
    background: linear-gradient(
        90deg,
        #5bcefa 0%,
        #f5a9b8 30%,
        #ffffff 50%,
        #f5a9b8 70%,
        #5bcefa 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.trans-name {
    background: linear-gradient(90deg, var(--purple-glow), var(--trans-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 0, 31, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--purple-glow), var(--trans-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.15s;
}

nav a:hover {
    color: var(--purple-glow);
}

section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.pfp-wrap {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.pfp {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 3px solid var(--purple-bright);
    filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.5));
    transition: opacity 0.25s;
}

.pfp-flag {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    border: 3px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.25s;
}

.pfp-flag span {
    flex: 1;
    display: block;
    transform: translate(-100%, -100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pfp-wrap:hover .pfp {
    opacity: 0;
}

.pfp-wrap:hover .pfp-flag {
    opacity: 1;
}

.pfp-wrap:hover .pfp-flag span {
    transform: translate(0, 0);
}

.pfp-wrap:hover .pfp-flag span:nth-child(1) {
    transition-delay: 0s;
}

.pfp-wrap:hover .pfp-flag span:nth-child(2) {
    transition-delay: 0.05s;
}

.pfp-wrap:hover .pfp-flag span:nth-child(3) {
    transition-delay: 0.1s;
}

.pfp-wrap:hover .pfp-flag span:nth-child(4) {
    transition-delay: 0.15s;
}

.pfp-wrap:hover .pfp-flag span:nth-child(5) {
    transition-delay: 0.2s;
}

.pfp-ring {
    position: absolute;
    inset: -8px;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--purple-deep), var(--purple-deep)) padding-box,
        linear-gradient(135deg, #5bcefa, #f5a9b8, #ffffff, #f5a9b8, #5bcefa)
            border-box;
    z-index: 0;
}

.hero-text {
    max-width: 560px;
}

.name {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    letter-spacing: 0.02em;
}

.badge-pride {
    border-color: rgba(245, 169, 184, 0.5);
    background: rgba(245, 169, 184, 0.07);
}

.bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 480px;
}

[hidden] {
    display: none !important;
}

.presence-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-top: 2rem;
    max-width: 560px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.presence-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.presence-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.presence-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    display: block;
    background: var(--purple-mid);
    border: 1px solid var(--card-border);
}

.status-dot {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--purple-deep);
}

.status-dot.online {
    background: #23a55a;
}

.status-dot.idle {
    background: #f0b232;
}

.status-dot.dnd {
    background: #f23f43;
}

.status-dot.offline {
    background: #747f8d;
}

.presence-body {
    flex: 1;
    min-width: 0;
}

.presence-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.presence-name {
    font-weight: 700;
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.presence-status-line {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.presence-custom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.98rem;
    margin-top: 0.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.presence-custom img,
.presence-custom .emoji-fallback {
    width: 1.05em;
    height: 1.05em;
    flex-shrink: 0;
}

.presence-spotify {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.65rem;
    background: rgba(45, 0, 80, 0.55);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.15s;
}

.presence-spotify:hover {
    border-color: rgba(29, 185, 84, 0.6);
}

.spotify-art {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.spotify-meta {
    min-width: 0;
    flex: 1;
}

.spotify-title {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-bar {
    height: 4px;
    background: rgba(168, 85, 247, 0.25);
    margin-top: 0.5rem;
    overflow: hidden;
}

.spotify-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: #1db954;
    transition: width 1s linear;
}

.spotify-times {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-variant-numeric: tabular-nums;
}

.presence-activities {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.activity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem;
    background: rgba(45, 0, 80, 0.55);
    border: 1px solid var(--card-border);
}

.activity img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--card-border);
}

.activity-meta {
    min-width: 0;
    flex: 1;
}

.activity-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--trans-pink);
    font-weight: 600;
}

.activity-name {
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    margin-top: 0.1rem;
}

.clock-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.25rem;
    flex: 1 1 320px;
    max-width: 560px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.clock-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.clock-icon-wrap {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
}

.clock-time {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-top: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.clock-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.day-bar {
    height: 4px;
    background: rgba(168, 85, 247, 0.25);
    margin-top: 0.75rem;
    overflow: hidden;
}

.day-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--purple-bright), var(--trans-pink));
    transition: width 1s linear;
}

.clock-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.lucide {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    stroke-width: 2;
    flex-shrink: 0;
}

.badge .lucide {
    width: 0.95em;
    height: 0.95em;
}

.section-title .lucide {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.2em;
    margin-right: 0.25rem;
}

.link-icon .lucide {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
}

.footer-heart {
    color: #c084fc;
    vertical-align: -0.15em;
    width: 1em;
    height: 1em;
    display: inline;
    fill: #c084fc;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ph-item {
    aspect-ratio: 4 / 3;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.contact {
    text-align: center;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition:
        border-color 0.15s,
        background 0.15s,
        box-shadow 0.15s;
}

.link-card:hover {
    border-color: var(--card-hover-border);
    background: rgba(45, 0, 80, 0.9);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.link-icon {
    font-size: 1.2rem;
    line-height: 1;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--purple-glow);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .badges {
        justify-content: center;
    }

    .bio {
        margin: 0 auto;
    }

    .presence-card {
        max-width: none;
    }

    .clock-card {
        max-width: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}
