:root {
    --bg: #060608;
    --accent: #fff;
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    background: var(--bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    perspective: 1000px;
}

.splash-container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.image-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    background: #111;
    z-index: 2;
    position: relative;
    animation: profileIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.loader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
    z-index: 1;
}

.loader-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.loader-circle {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 471; /* 2 * PI * 75 */
    stroke-dashoffset: 471;
    animation: loadProgress 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.greeting {
    font-size: clamp(1rem, 5vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
    font-family: 'DM Mono', monospace;
    color: #fff;
    padding: 0 20px;
}

.sub-greeting {
    font-size: clamp(0.55rem, 3vw, 0.65rem);
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    font-family: 'DM Mono', monospace;
    margin-bottom: 6px;
}

.status-text {
    font-size: clamp(0.4rem, 2.5vw, 0.5rem);
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: textFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
    font-family: 'DM Mono', monospace;
}

/* Ambient Glow */
.glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 4s infinite alternate;
}

@keyframes profileIn {
    0% { opacity: 0; transform: scale(0.5) rotate(-10deg); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}

@keyframes loadProgress {
    0% { stroke-dashoffset: 471; }
    100% { stroke-dashoffset: 0; }
}

@keyframes textFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
    from { transform: scale(1); opacity: 0.5; }
    to { transform: scale(1.2); opacity: 0.8; }
}

/* Exit Animation - Merging Effect */
.exit-anim {
    animation: splashExit 1s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes splashExit {
    0% { transform: scale(1); opacity: 1; filter: blur(0); }
    40% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(5); opacity: 0; filter: blur(30px); }
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
