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

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0f1a;
    background-image: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    color: white;
    position: relative;
}

/* Container pentru nebuloase */
.nebulae-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 3s ease;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.nebula-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 150, 255, 0.8), transparent);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.nebula-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(150, 0, 255, 0.6), transparent);
    bottom: -20%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.nebula-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.5), transparent);
    top: 20%;
    right: 10%;
    animation-duration: 22s;
    animation-delay: -10s;
}

#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 2s ease;
}

body::before {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: rgba(0, 150, 255, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 3;
    animation: pulse 8s infinite alternate;
    pointer-events: none;
    opacity: 0;
    transition: opacity 4s ease;
}

.brand {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    z-index: 4;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    position: relative;
    
    /* Initial state for entry transition */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: blur(10px) drop-shadow(0 0 0 rgba(255,255,255,0));
    transition: 
        opacity 2s cubic-bezier(0.2, 0, 0.2, 1),
        transform 2s cubic-bezier(0.2, 0, 0.2, 1),
        filter 2s cubic-bezier(0.2, 0, 0.2, 1);
}

.brand.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: text-glow-pulse 4s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.4); opacity: 0.5; }
}

@keyframes text-glow-pulse {
    0% { 
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) drop-shadow(0 0 5px rgba(255,255,255,0.1));
    }
    100% { 
        filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) drop-shadow(0 0 20px rgba(255,255,255,0.4));
    }
}

.visible-opacity {
    opacity: 1 !important;
}
