:root {
    --void-black: #050508;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --holo-gold: #ffd700;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--void-black);
    font-family: 'Rajdhani', sans-serif;
    color: white;
    height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', box-shadow;
    letter-spacing: 2px;
}

/* --- VOID BACKGROUND --- */
.void-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000000 70%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 50px 50px, 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.3;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from {
        background-position: 0 0, 10px 10px;
    }

    to {
        background-position: 1000px 1000px, 1010px 1010px;
    }
}

.grid-floor {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0, 243, 255, 0.1) 50%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(188, 19, 254, 0.1) 50%, transparent 51%);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridScroll 10s linear infinite;
    pointer-events: none;
}

@keyframes gridScroll {
    from {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    to {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* --- HUD OVERLAY --- */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    color: var(--neon-cyan);
}

.pinger {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: ping 1s infinite;
}

@keyframes ping {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.domain-tag {
    border: 1px solid var(--neon-purple);
    padding: 2px 8px;
    background: rgba(188, 19, 254, 0.1);
    letter-spacing: 1px;
}

/* --- 3D HTML CUBE --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    perspective: 1500px;
    /* Crucial for 3D */
    padding-top: 50px;
}

.cube-container {
    width: 300px;
    height: 300px;
    position: relative;
    margin-bottom: 50px;
}

.scene {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: floatCube 4s ease-in-out infinite;
}

@keyframes floatCube {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(25deg);
    /* Animation controlled by JS usually, but here's an auto spin */
    animation: spin3D 20s linear infinite;
}

@keyframes spin3D {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass Body */
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Glass Edge */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 30px rgba(0, 243, 255, 0.1);
    backface-visibility: visible;
    /* Glass is see-through */
    color: white;
    font-family: 'Orbitron';
    text-align: center;
    overflow: hidden;
}

/* Cube Face Transformations */
.front {
    transform: rotateY(0deg) translateZ(150px);
}

.back {
    transform: rotateY(180deg) translateZ(150px);
}

.right {
    transform: rotateY(90deg) translateZ(150px);
}

.left {
    transform: rotateY(-90deg) translateZ(150px);
}

.top {
    transform: rotateX(90deg) translateZ(150px);
    background: rgba(0, 243, 255, 0.15);
}

.bottom {
    transform: rotateX(-90deg) translateZ(150px);
    background: rgba(188, 19, 254, 0.15);
}

/* Internal Content */
.brand-text {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px var(--neon-cyan);
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-layer {
    font-size: 4rem;
    opacity: 0.8;
    margin-top: 10px;
    filter: drop-shadow(0 0 10px #ff0000);
}

.glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

/* Shadow */
.shadow-platform {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    animation: shadowPulse 4s ease-in-out infinite;
}

@keyframes shadowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) rotateX(90deg) scale(1);
    }

    50% {
        opacity: 0.2;
        transform: translateX(-50%) rotateX(90deg) scale(0.8);
    }
}

/* --- TEXT & BUTTONS --- */
.hero-text {
    text-align: center;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

.glitch-text {
    font-size: 3.5rem;
    margin: 0;
    color: white;
    text-shadow: 4px 4px 0px var(--neon-purple);
    position: relative;
}

.sub-glitch {
    color: var(--neon-cyan);
    font-size: 1.2rem;
    margin-top: 5px;
    letter-spacing: 5px;
}

.mission-log {
    font-family: 'monospace';
    color: #888;
    margin-top: 20px;
    border-left: 2px solid var(--neon-cyan);
    padding-left: 10px;
    display: inline-block;
    text-align: left;
}

.download-matrix {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cyber-button {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: 'Orbitron';
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
    transition: 0.3s;
    letter-spacing: 1px;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: 0.5s;
}

.cyber-button:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button.secondary {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.cyber-button.secondary:hover {
    background: rgba(188, 19, 254, 0.1);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

/* --- MODULES GRID --- */
.features-deck {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 2;
}

.deck-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cyber-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
    /* For simulating border */
    position: relative;
    transition: 0.3s;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.15);
}

.card-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    height: 100%;
}

.icon-holo {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-bar {
    height: 4px;
    background: var(--neon-cyan);
    margin-top: 15px;
    box-shadow: 0 0 5px var(--neon-cyan);
}

/* --- FOOTER --- */
.cyber-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
    padding: 20px;
    text-align: center;
    color: #666;
    background: black;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 20px;
    }

    .cube-container {
        width: 200px;
        height: 200px;
    }

    .cube-face {
        width: 200px;
        height: 200px;
    }

    .front {
        transform: rotateY(0deg) translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    .download-matrix {
        flex-direction: column;
    }
}