:root {
    --bg-color: #05080a;
    --accent-color: #00f2ff;
    --accent-secondary: #00a2ff;
    --text-color: #ffffff;
    --font-main: 'Orbitron', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sub);
    overflow: hidden;
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Stars Effect */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a2a3a 0%, #05080a 100%);
}

/* HUD Overlay scanlines */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0.3;
}

main {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Globe and HUD Container */
.globe-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe {
    width: 300px;
    height: 300px;
    background: url('earth.png');
    background-size: cover;
    border-radius: 50%;
    box-shadow: inset 0 0 50px rgba(0, 242, 255, 0.4),
                0 0 60px rgba(0, 242, 255, 0.3);
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.8)) brightness(1.2);
    opacity: 0.9;
    /*animation: rotateGlobe 40s linear infinite;*/
    position: relative;
    z-index: 2;
}

.globe::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.2) 0%, transparent 80%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes rotateGlobe {
    from { background-position: 0 0; }
    to { background-position: 600px 0; }
}

/* HUD Circles */
.hud-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%;
}

.circle-1 {
    width: 350px;
    height: 350px;
    border-style: dashed;
    animation: rotate 20s linear infinite;
}

.circle-2 {
    width: 380px;
    height: 380px;
    border-width: 2px;
    border-color: rgba(0, 242, 255, 0.1);
    border-top-color: var(--accent-color);
    animation: rotate 10s linear infinite reverse;
}

.circle-3 {
    width: 420px;
    height: 420px;
    border-left-color: var(--accent-color);
    border-right-color: var(--accent-color);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation: rotate 15s ease-in-out infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Text Content */
.text-content {
    text-align: center;
    z-index: 2;
}

/* Glitch Effect for Title */
.main-title {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    position: relative;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #fff, 0 0 20px var(--accent-color), 0 0 30px var(--accent-secondary); }
    to { text-shadow: 0 0 20px #fff, 0 0 30px var(--accent-color), 0 0 40px var(--accent-secondary); }
}

.main-title::before,
.main-title::after {
    content: 'POINTERS GUARDIAN';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.main-title::before {
    color: #ff00c1;
    z-index: -1;
    animation: glitch 4s infinite linear alternate-reverse;
}

.main-title::after {
    color: #00fff0;
    z-index: -2;
    animation: glitch 2s infinite linear alternate;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Scanning line effect on globe */
.scanning-lines {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.scanning-lines::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 242, 255, 0.2) 50%,
        transparent
    );
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* Data points container */
#data-points {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.data-node {
    position: absolute;
    font-family: var(--font-sub);
    font-size: 0.7rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
    animation: fadeInOut 4s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1); }
}

.subtitle {
    font-family: var(--font-sub);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--accent-color);
    text-transform: uppercase;
    opacity: 0.8;
}

.divider {
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 2rem auto;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Status Section */
.status-container {
    margin-top: 2rem;
}

.status-text {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: loading 3s infinite ease-in-out;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title { 
        font-size: 2.2rem; 
        letter-spacing: 4px; 
    }
    .subtitle { 
        font-size: 0.9rem; 
        letter-spacing: 3px; 
    }
    .globe-container { 
        width: 250px; 
        height: 250px; 
    }
    .globe { 
        width: 180px; 
        height: 180px; 
    }
    .circle-1 { width: 220px; height: 220px; }
    .circle-2 { width: 240px; height: 240px; }
    .circle-3 { width: 260px; height: 260px; }
    
    .data-node {
        font-size: 0.6rem;
    }
}

@media (max-width: 380px) {
    .main-title { 
        font-size: 1.8rem; 
        letter-spacing: 2px; 
    }
    .globe-container { 
        width: 200px; 
        height: 200px; 
    }
    .globe { 
        width: 140px; 
        height: 140px; 
    }
    .circle-1 { width: 170px; height: 170px; }
    .circle-2 { width: 185px; height: 185px; }
    .circle-3 { width: 200px; height: 200px; }
}
