body {
    background-color: #050505;
}

.cyber-grid {
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.glassmorphism {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #00f3ff;
}

.btn-cyber {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 0 10px #00f3ff;
}
/* Premium SpaceX x Cyberpunk Upgrades */

/* Fixed HD Background */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    opacity: 0.4; /* Dimmed for HUD visibility */
    filter: contrast(1.2) saturate(1.2);
}

/* Film Grain / CRT Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glassmorphism Refinement */
.glassmorphism {
    background: rgba(5, 5, 5, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism:hover {
    border-color: rgba(0, 243, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Sweeping Metallic/Neon Button Hover */
.btn-cyber {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-cyber:hover::before {
    left: 200%;
}

.btn-cyber:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px #00f3ff, inset 0 0 10px rgba(0, 243, 255, 0.5);
    background-color: rgba(0, 243, 255, 0.1);
}

/* Fade In Up Animation for Elements */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Apply staggered delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
