:root {
    --bg-color: #000000;
    --primary-light: #ffffff;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --danger-red: #ff003c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--primary-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Canvas */
#warpCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-light);
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

nav a {
    color: var(--primary-light);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

nav a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--accent-cyan);
    overflow: hidden;
    transition: width 0.3s ease;
    border-right: 2px solid var(--accent-cyan);
}

nav a:hover::before {
    width: 100%;
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    position: relative;
}

/* Hero */
.glitch-wrapper {
    position: relative;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--primary-light);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    line-height: 1;
}

/* Glitch Effect */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-purple);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--danger-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    20% { clip: rect(60px, 9999px, 80px, 0); }
    40% { clip: rect(10px, 9999px, 90px, 0); }
    60% { clip: rect(80px, 9999px, 20px, 0); }
    80% { clip: rect(30px, 9999px, 50px, 0); }
    100% { clip: rect(70px, 9999px, 100px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(90px, 9999px, 10px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(50px, 9999px, 20px, 0); }
    60% { clip: rect(20px, 9999px, 70px, 0); }
    80% { clip: rect(80px, 9999px, 40px, 0); }
    100% { clip: rect(30px, 9999px, 90px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-top: 1rem;
    color: var(--accent-cyan);
    font-weight: 300;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

/* Manifesto */
#manifesto h2, #lore h2, #reset h2 {
    font-family: var(--font-main);
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
}

.highlight {
    color: var(--primary-light);
    text-shadow: 0 0 10px white, 0 0 20px white;
    font-weight: bold;
}

/* Lore Section */
.split-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
}

.text-side {
    flex: 1;
}

.visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.danger {
    color: var(--danger-red);
    font-weight: bold;
}

.decrypt-text {
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
}

.alien-glyph {
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-cyan);
    position: relative;
    transform: rotate(45deg);
    box-shadow: 0 0 30px var(--accent-cyan);
}

.alien-glyph::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    border: 2px solid var(--accent-purple);
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Countdown */
.countdown-container {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.date {
    font-size: 5rem;
    font-weight: 900;
    color: var(--danger-red);
    margin-bottom: 2rem;
    letter-spacing: 10px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-family: var(--font-main);
    font-size: 4rem;
    color: var(--primary-light);
}

.time-unit label {
    color: var(--accent-cyan);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.warning-text {
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .split-layout {
        flex-direction: column;
    }
    #countdown {
        gap: 1rem;
    }
    .time-unit span {
        font-size: 2rem;
    }
    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        gap: 1rem;
        font-size: 0.8rem;
    }
}
