/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    color: #ffffff;
    position: relative;
}

/* Background animation container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle-2 {
    top: 60%;
    left: 80%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.particle-3 {
    top: 80%;
    left: 30%;
    animation-delay: -10s;
    animation-duration: 35s;
}

.particle-4 {
    top: 30%;
    left: 70%;
    animation-delay: -15s;
    animation-duration: 28s;
}

.particle-5 {
    top: 50%;
    left: 20%;
    animation-delay: -20s;
    animation-duration: 32s;
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Ambient glow effects */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 8s ease-in-out infinite;
}

.ambient-glow-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(64, 224, 255, 0.1) 0%, transparent 70%);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.ambient-glow-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    top: 60%;
    right: 20%;
    animation-delay: -3s;
}

.ambient-glow-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 255, 127, 0.06) 0%, transparent 70%);
    bottom: 30%;
    left: 40%;
    animation-delay: -6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Logo container with glow effect */
.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-glow {
    position: relative;
    display: inline-block;
    animation: logoGlow 8s ease-in-out infinite;
}

.logo {
    width: 720px;
    height: 720px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(64, 224, 255, 0.2));
        transform: scale(1.02);
    }
}

/* Optional text styles (commented out in HTML) */
.text-container {
    text-align: center;
    margin-top: 40px;
    opacity: 0.8;
}

.text-container h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.text-container p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* Responsive design */
@media (max-width: 768px) {
    .logo {
        width: 600px;
        height: 600px;
    }
    
    .text-container h1 {
        font-size: 2rem;
    }
    
    .text-container p {
        font-size: 1rem;
    }
    
    .ambient-glow-1,
    .ambient-glow-2,
    .ambient-glow-3 {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 480px;
        height: 480px;
    }
    
    .text-container h1 {
        font-size: 1.5rem;
    }
    
    .text-container p {
        font-size: 0.9rem;
    }
}

/* Performance optimizations */
.logo,
.particle,
.ambient-glow {
    will-change: transform, opacity;
}

/* Reduce animations on low-power devices */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .ambient-glow,
    .logo-glow {
        animation: none;
    }
    
    .logo {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}
