:root {
    --primary-dark: #9013fe;
    --african-violet: #b284be;
    --neon-violet: #c084fc;
    --off-white: #faf9f6;
    --muted-grey: #b4adc0;
    --bg-black: #050505;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Unbounded', sans-serif;
    background-color: var(--bg-black);
    overflow: hidden;
    user-select: none;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    * {
        cursor: crosshair !important;
    }
    #cursor-ring {
        position: fixed;
        top: 0;
        left: 0;
        width: 34px;
        height: 34px;
        border: 1.5px solid rgba(178, 132, 190, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
        box-shadow: 0 0 15px rgba(144, 19, 254, 0.25);
    }
    #cursor-ring.cursor-hover {
        width: 56px;
        height: 56px;
        border-color: var(--off-white);
        background-color: rgba(144, 19, 254, 0.15);
        box-shadow: 0 0 25px var(--primary-dark);
    }
}

@media (hover: none) or (pointer: coarse) {
    #cursor-ring {
        display: none !important;
    }
}

.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%) scale(1.1);
    z-index: -2;
    filter: blur(16px) brightness(0.35) saturate(1.2);
    object-fit: cover;
    transition: filter 1.2s ease, transform 1.2s ease;
}

body.entered .bg-video {
    filter: blur(12px) brightness(0.42) saturate(1.3);
    transform: translateX(-50%) translateY(-50%) scale(1.04);
}

.ambient-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at center, transparent 10%, rgba(5, 5, 5, 0.88) 100%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0px, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 3px);
    pointer-events: none;
}

#mute-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(12, 8, 20, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(178, 132, 190, 0.25);
    color: var(--off-white);
    font-size: 1rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

#mute-btn:hover {
    color: var(--neon-violet);
    border-color: var(--primary-dark);
    box-shadow: 0 0 25px rgba(144, 19, 254, 0.6);
}

.eq-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
}

.eq-bars span {
    width: 3px;
    background: var(--neon-violet);
    border-radius: 2px;
    animation: eqBounce 0.8s infinite ease-in-out;
}

.eq-bars span:nth-child(1) { height: 4px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.eq-bars span:nth-child(3) { height: 7px; animation-delay: 0.4s; }

.eq-bars.muted span {
    animation: none;
    height: 3px !important;
    background: rgba(250, 249, 246, 0.3);
}

@keyframes eqBounce {
    0%, 100% { height: 3px; }
    50% { height: 12px; }
}

#click-screen {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.click-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

#click-screen h1 {
    color: var(--off-white);
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 25px var(--primary-dark), 0 0 50px var(--african-violet);
    margin: 0;
    animation: floatPulse 2.5s infinite ease-in-out;
    text-align: center;
}

.click-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), var(--off-white), var(--primary-dark), transparent);
    box-shadow: 0 0 15px var(--primary-dark);
    animation: lineBreath 2.5s infinite ease-in-out;
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.75; }
    50% { transform: translateY(-3px) scale(1.02); opacity: 1; }
}

@keyframes lineBreath {
    0%, 100% { width: 40px; opacity: 0.4; }
    50% { width: 120px; opacity: 1; }
}

#main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease-in-out;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    padding: 16px;
}

.profile-container {
    position: relative;
    text-align: center;
    width: fit-content;
    min-width: min(460px, 92vw);
    max-width: 94vw;
    padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px);
    border-radius: clamp(24px, 4vw, 32px);
    background: rgba(10, 7, 16, 0.5);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(178, 132, 190, 0.22);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.85),
        0 0 50px rgba(144, 19, 254, 0.16),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transform: translateY(25px) scale(0.96);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    z-index: 10;
    overflow: hidden;
}

.profile-container.active {
    transform: translateY(0) scale(1);
}

.spotlight {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(144, 19, 254, 0.26) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (hover: hover) {
    .profile-container:hover .spotlight {
        opacity: 1;
    }
    .profile-container:hover {
        border-color: rgba(192, 132, 252, 0.45);
        box-shadow: 
            0 35px 70px rgba(0, 0, 0, 0.9),
            0 0 70px rgba(144, 19, 254, 0.28),
            inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }
}

.ambient-orb {
    position: absolute;
    top: -35%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 140px;
    background: var(--primary-dark);
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: orbBreath 4s infinite ease-in-out;
}

@keyframes orbBreath {
    0%, 100% { opacity: 0.25; transform: translateX(-50%) scale(0.9); }
    50% { opacity: 0.45; transform: translateX(-50%) scale(1.1); }
}

.profile-title {
    position: relative;
    z-index: 2;
    font-size: clamp(1.55rem, 6.2vw, 3.1rem);
    margin: 0 0 12px 0;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
    background: linear-gradient(
        110deg, 
        var(--off-white) 0%, 
        var(--african-violet) 25%, 
        var(--primary-dark) 50%, 
        var(--neon-violet) 75%, 
        var(--off-white) 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 6px 20px rgba(144, 19, 254, 0.45));
    animation: shineGradient 5s linear infinite;
    transform: translateZ(30px);
}

@keyframes shineGradient {
    0% { background-position: 0% center; }
    100% { background-position: 250% center; }
}

.typewriter-container {
    position: relative;
    z-index: 2;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    color: var(--muted-grey);
    margin-bottom: clamp(24px, 4vw, 34px);
    min-height: 1.5em;
    white-space: nowrap;
    transform: translateZ(25px);
    letter-spacing: 0.5px;
}

.prompt-arrow {
    color: var(--neon-violet);
    font-weight: 600;
    margin-right: 6px;
    text-shadow: 0 0 10px var(--primary-dark);
}

.cursor {
    color: var(--neon-violet);
    font-weight: 600;
    animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.links-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: clamp(14px, 3.5vw, 24px);
    flex-wrap: nowrap;
    transform: translateZ(20px);
}

.social-link {
    position: relative;
    color: var(--off-white);
    text-decoration: none;
    font-size: clamp(1.4rem, 3.8vw, 2rem);
    width: clamp(48px, 11vw, 64px);
    height: clamp(48px, 11vw, 64px);
    border-radius: clamp(14px, 2.5vw, 18px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    will-change: transform;
}

.social-link:active {
    transform: scale(0.95);
}

@media (hover: hover) {
    .social-link:hover {
        color: var(--off-white);
        background: rgba(144, 19, 254, 0.22);
        border-color: var(--neon-violet);
        box-shadow: 
            0 0 25px rgba(144, 19, 254, 0.6),
            inset 0 0 12px rgba(192, 132, 252, 0.3);
    }
}

.social-link i {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

@media (hover: hover) {
    .social-link::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -34px;
        left: 50%;
        transform: translateX(-50%) translateY(6px) scale(0.9);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--off-white);
        background: rgba(12, 8, 20, 0.92);
        border: 1px solid rgba(178, 132, 190, 0.35);
        padding: 4px 10px;
        border-radius: 7px;
        opacity: 0;
        pointer-events: none;
        transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        white-space: nowrap;
    }

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

.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: fallAndFade 0.8s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes fallAndFade {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(-50%, 30px) scale(0) rotate(180deg); opacity: 0; }
}
