:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #06b6d4;
    /* Cyan */
    --secondary-color: #d946ef;
    /* Magenta */
    --font-heading: 'Orbitron', sans-serif;
    --font-brand: 'Space Grotesk', sans-serif;
    /* Modern font for brand name */
    --font-body: 'Outfit', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    /* Prevent scrolling */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.centered-container {
    z-index: 10;
    display: flex;
    flex-direction: column;
    /* Stack logo and text vertically */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 1rem;
    /* Space between logo and text */
}

.main-logo {
    max-width: 80%;
    /* Responsive sizing */
    width: 300px;
    /* Slightly smaller to balance with text */
    height: auto;
    display: block;

    /* Reveal animation */
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;

    /* Using screen mode to make black transparent */
    /* Radial gradient mask to hide the box edges - works even on file:// protocol */

    /* SVG Vector Logo - Flawless transparency */
    /* No blend modes needed */
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
}

.brand-text {
    font-family: var(--font-brand);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -2px;
    /* Tight modern tracking */
    background: linear-gradient(to right, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Gradient text */
    margin: 0;
    opacity: 0;
    animation: slideUp 1s ease-out 1.5s forwards;
    /* Animated entrance after logo */
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive adjustment */
@media (max-width: 768px) {
    .main-logo {
        width: 60%;
    }

    .brand-text {
        font-size: 2rem;
    }
}