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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    position: relative;
    perspective: 1000px;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transform-style: preserve-3d;
}

/* 3D Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 800px;
    transform-style: preserve-3d;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #4a9eff 0%, #00d4ff 100%);
    border-radius: 50%;
    animation: float3D 6s ease-in-out infinite;
    box-shadow: 0 0 10px #4a9eff;
    transform-style: preserve-3d;
}

@keyframes float3D {
    0%, 100% { 
        transform: translateZ(0px) translateY(0px) rotateY(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateZ(50px) translateY(-10px) rotateY(90deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateZ(100px) translateY(-20px) rotateY(180deg); 
        opacity: 0.9; 
    }
    75% { 
        transform: translateZ(50px) translateY(-10px) rotateY(270deg); 
        opacity: 1; 
    }
}



/* 3D Depth Layers */
.depth-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.depth-layer:nth-child(1) { z-index: 1; }
.depth-layer:nth-child(2) { z-index: 2; }
.depth-layer:nth-child(3) { z-index: 3; }

/* 3D Floating Elements */
.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.floating-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(74, 158, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.floating-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
}

@keyframes rotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    50% { transform: rotateY(180deg) rotateX(90deg); }
    100% { transform: rotateY(360deg) rotateX(360deg); }
}

/* 3D Floating Elements Container */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.floating-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(74, 158, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mouse Trail */
.mouse-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.trail-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00d4ff 0%, #4a9eff 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: fadeOut 1s ease-out forwards;
    box-shadow: 0 0 15px #00d4ff;
}

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

/* Interactive Glow Effect */
.interactive-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.3s ease;
    filter: blur(20px);
    transform: translateZ(50px);
}

/* 3D Grid Background */
.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(74, 158, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(1000px) rotateX(60deg) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(1000px) rotateX(60deg) translateZ(-200px) translateY(0px); }
    100% { transform: perspective(1000px) rotateX(60deg) translateZ(-200px) translateY(50px); }
}

/* Content */
.content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 20vh;
}

.content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4a9eff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content h1 {
        font-size: 2.5rem;
    }
    
    .content p {
        font-size: 1rem;
    }
} 