/* Global Base */
body {
    background-color: #050505;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Glassmorphism Nav */
.glass-nav {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
    backdrop-filter: blur(2px);
}

/* --- The Holographic Device --- */
.device-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rotating Rings */
.hologram-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-top: 2px solid rgba(6, 182, 212, 0.8);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.hologram-ring-2 {
    position: absolute;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-bottom: 2px solid rgba(147, 51, 234, 0.8);
    border-radius: 50%;
    animation: spin-reverse 6s linear infinite;
}

/* The Cube Core */
.hologram-core {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 10s linear infinite;
}

.face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) inset;
}

.face.front  { transform: translateZ(30px); }
.face.back   { transform: rotateY(180deg) translateZ(30px); }
.face.right  { transform: rotateY(90deg) translateZ(30px); }
.face.left   { transform: rotateY(-90deg) translateZ(30px); }
.face.top    { transform: rotateX(90deg) translateZ(30px); }
.face.bottom { transform: rotateX(-90deg) translateZ(30px); }

/* Scanline Effect */
.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: cyan;
    opacity: 0.5;
    animation: scan 3s linear infinite;
    top: 0;
    box-shadow: 0 0 10px cyan;
}

/* --- Text Glitch Effect --- */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505; /* Matches body bg to hide original */
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

/* --- Countdown Items --- */
.countdown-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    min-width: 100px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.3);
}

/* --- Button --- */
.clip-button {
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

/* --- Animations --- */
@keyframes spin {
    0% { transform: rotate(0deg) rotateX(60deg); }
    100% { transform: rotate(360deg) rotateX(60deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg) rotateX(-45deg); }
    100% { transform: rotate(0deg) rotateX(-45deg); }
}

@keyframes rotate3d {
    0% { transform: rotateX(0) rotateY(0) rotateZ(0); }
    100% { transform: rotateX(360deg) rotateY(180deg) rotateZ(360deg); }
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

@keyframes glitch-anim {
    0% { clip: rect(12px, 9999px, 81px, 0); transform: skew(0.8deg); }
    5% { clip: rect(69px, 9999px, 86px, 0); transform: skew(0.2deg); }
    10% { clip: rect(6px, 9999px, 20px, 0); transform: skew(0.6deg); }
    15% { clip: rect(89px, 9999px, 4px, 0); transform: skew(0.1deg); }
    20% { clip: rect(31px, 9999px, 60px, 0); transform: skew(0.3deg); }
    100% { clip: rect(63px, 9999px, 3px, 0); transform: skew(0.9deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.3deg); }
    5% { clip: rect(4px, 9999px, 62px, 0); transform: skew(0.9deg); }
    10% { clip: rect(82px, 9999px, 23px, 0); transform: skew(0.1deg); }
    15% { clip: rect(2px, 9999px, 16px, 0); transform: skew(0.5deg); }
    20% { clip: rect(96px, 9999px, 72px, 0); transform: skew(0.8deg); }
    100% { clip: rect(37px, 9999px, 5px, 0); transform: skew(0.2deg); }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hologram-ring { width: 150px; height: 150px; }
    .hologram-ring-2 { width: 120px; height: 120px; }
    .hologram-core { width: 40px; height: 40px; }
    .face { width: 40px; height: 40px; }
    .face.front  { transform: translateZ(20px); }
    .face.back   { transform: rotateY(180deg) translateZ(20px); }
    .face.right  { transform: rotateY(90deg) translateZ(20px); }
    .face.left   { transform: rotateY(-90deg) translateZ(20px); }
    .face.top    { transform: rotateX(90deg) translateZ(20px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(20px); }
}