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

body {
    background: #0a0a0f;
    min-height: 100vh;
}

/* Scanline overlay */
.scanlines::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* Glitch text effect */
@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 97% 0); transform: translate(-2px, 0); }
    10% { clip-path: inset(30% 0 40% 0); transform: translate(2px, 0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(-1px, 0); }
    30% { clip-path: inset(80% 0 5% 0); transform: translate(1px, 0); }
    40% { clip-path: inset(10% 0 70% 0); transform: translate(3px, 0); }
    50% { clip-path: inset(50% 0 30% 0); transform: translate(-3px, 0); }
    60% { clip-path: inset(20% 0 60% 0); transform: translate(2px, 0); }
    70% { clip-path: inset(70% 0 15% 0); transform: translate(-1px, 0); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 0); }
    90% { clip-path: inset(40% 0 40% 0); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
    10% { clip-path: inset(40% 0 30% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(10% 0 60% 0); transform: translate(1px, 0); }
    30% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 0); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(-3px, 0); }
    50% { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
    60% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
    70% { clip-path: inset(15% 0 70% 0); transform: translate(1px, 0); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 0); }
    90% { clip-path: inset(40% 0 40% 0); transform: translate(2px, 0); }
}

.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    color: #00f0ff;
    animation: glitch-1 3s infinite linear;
    z-index: -1;
}

.glitch-text::after {
    color: #ff00aa;
    animation: glitch-2 3s infinite linear;
    z-index: -1;
}

/* Floating shapes */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(90deg); }
    50% { transform: translate(-20px, -80px) rotate(180deg); }
    75% { transform: translate(40px, -30px) rotate(270deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    25% { transform: translate(-40px, -30px) rotate(135deg); }
    50% { transform: translate(30px, -60px) rotate(225deg); }
    75% { transform: translate(-20px, -40px) rotate(315deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, -30px) rotate(240deg); }
}

.float-shape-1 { animation: float-1 20s ease-in-out infinite; }
.float-shape-2 { animation: float-2 25s ease-in-out infinite; }
.float-shape-3 { animation: float-3 18s ease-in-out infinite; }

/* Pulse button */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1); }
    50% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6), 0 0 60px rgba(0, 240, 255, 0.2), 0 0 80px rgba(0, 240, 255, 0.1); }
}

.pulse-btn {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Typewriter cursor */
@keyframes blink-cursor {
    0%, 50% { border-color: #00ff88; }
    51%, 100% { border-color: transparent; }
}

.typewriter-cursor {
    border-right: 2px solid #00ff88;
    animation: blink-cursor 1s step-end infinite;
}

/* Terminal cursor */
@keyframes terminal-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-cursor {
    animation: terminal-blink 1s step-end infinite;
}

/* Card hover glow */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: scale(1.03);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1), 0 0 60px rgba(123, 47, 255, 0.05);
}

/* Activity ticker */
@keyframes scroll-ticker {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.ticker-scroll {
    animation: scroll-ticker 30s linear infinite;
}

/* Warp transition */
@keyframes warp-in {
    0% { transform: scale(1); filter: blur(0px) brightness(1); }
    30% { transform: scale(0.95); filter: blur(3px) brightness(3); }
    60% { transform: scale(1.1); filter: blur(10px) brightness(5); }
    80% { transform: scale(0.98); filter: blur(2px) brightness(1.5); }
    100% { transform: scale(1); filter: blur(0px) brightness(1); }
}

.warp-transition {
    animation: warp-in 1.2s ease-out forwards;
}

/* Matrix rain */
@keyframes matrix-fall {
    0% { transform: translateY(-100vh); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0.3; }
}

/* Gradient orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Counter animation */
@keyframes count-fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-animate {
    animation: count-fade 0.6s ease-out forwards;
}

/* Nav link hover */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00f0ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Flash overlay */
@keyframes flash {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.flash-overlay {
    animation: flash 0.8s ease-out forwards;
}

/* Neon line */
@keyframes neon-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.neon-line {
    animation: neon-pulse 3s ease-in-out infinite;
}

/* Entry fade in stagger */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    animation: fade-up 0.8s ease-out forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }
.fade-up-6 { animation-delay: 0.6s; }

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}