:root {
    --bg-color: #0A192F;
    --text-main: #FFFFFF;
    --text-muted: #8892B0;
    --accent-glow: rgba(56, 189, 248, 0.4);
    /* Light blue glow */
    --accent-color: #38BDF8;
    /* Light blue accent */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Math Symbols */
#math-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Let clicks pass through to main content */
    z-index: 1;
    overflow: hidden;
}

/* Each math symbol */
.math-symbol {
    position: absolute;
    font-family: 'Times New Roman', Times, serif;
    /* Traditional math font look */
    animation: float linear infinite;
    /* Subtle light blue glowing effect for each symbol */
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

@keyframes float {
    0% {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Main Content Container */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

/* Typography styles */
.title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    /* Clean white look with light shadow for depth */
    background: linear-gradient(180deg, #FFFFFF 0%, #CCD6F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
}

.subtitle {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
}

.description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 4rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Loading Spinner Area */
.loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(56, 189, 248, 0.1);
    /* Very faint blue track */
    border-radius: 50%;
    /* Double spinner effect */
    border-top-color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.05);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .description {
        margin-bottom: 3rem;
    }
}