/* ===== badalpe.com Cyberpunk Placeholder ===== */
:root {
    --bg1: #03030a;
    --bg2: #050018;
    --accent: #00f5ff;
    --accent-soft: rgba(0, 245, 255, 0.35);
    --accent-pink: #ff00ff;
    --text-main: #f5f5ff;
    --text-muted: #a6a6c9;
}

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Arial, sans-serif;
    color: var(--text-main);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, #3a0066 0, transparent 55%),
        radial-gradient(circle at bottom right, #001f3f 0, transparent 55%),
        linear-gradient(135deg, var(--bg1), var(--bg2));
    background-size: 200% 200%;
    animation: bgShift 20s ease-in-out infinite alternate;
}

/* Animated background gradient */
@keyframes bgShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 100% 50%; }
}

/* CRT + scanline overlays */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
    mix-blend-mode: multiply;
    z-index: 2;
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 3px;
    opacity: 0.25;
    z-index: 3;
    mix-blend-mode: soft-light;
}

/* Floating grid shards */
body::before,
body::after {
    content: "";
    position: fixed;
    width: 180%;
    height: 180%;
    pointer-events: none;
    background-image:
        linear-gradient(120deg, rgba(0,245,255,0.18) 1px, transparent 1px),
        linear-gradient(-120deg, rgba(255,0,255,0.12) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.08;
    z-index: 1;
    transform: translate3d(0,0,0);
    animation: shardsDrift 45s linear infinite;
}

body::after {
    animation-duration: 60s;
    opacity: 0.06;
}

@keyframes shardsDrift {
    0% { transform: translate3d(-10%, -10%, 0); }
    100% { transform: translate3d(10%, 10%, 0); }
}

.container {
    position: relative;
    z-index: 4;
    padding: 32px 20px 40px;
    max-width: 720px;
}

/* Logo & glow */
.logo-wrap {
    display: inline-block;
    padding: 14px;
    border-radius: 24px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    box-shadow:
        0 0 32px rgba(0, 245, 255, 0.65),
        0 0 80px rgba(153, 0, 255, 0.5);
}

.floating {
    animation: floating 3.5s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo-img {
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
    filter:
        drop-shadow(0 0 16px rgba(0, 245, 255, 0.9))
        drop-shadow(0 0 40px rgba(119, 0, 255, 0.7));
    animation: logoGlitch 6s infinite;
}

/* occasional tiny logo jitter */
@keyframes logoGlitch {
    0%, 90%, 100% { transform: translate(0, 0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, 2px); }
}

/* Glitch heading */
#site-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin: 1.6rem 0 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

#site-title::before,
#site-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.7;
    pointer-events: none;
}

#site-title::before {
    color: var(--accent-pink);
    mix-blend-mode: screen;
    animation: glitch1 2.5s infinite;
}

#site-title::after {
    color: var(--accent);
    mix-blend-mode: screen;
    animation: glitch2 3s infinite;
}

@keyframes glitch1 {
    0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
    15% { transform: translate(-2px, -1px); clip-path: inset(0 0 55% 0); }
    30% { transform: translate(2px, 1px); clip-path: inset(45% 0 0 0); }
    45% { transform: translate(-1px, 0); clip-path: inset(10% 0 30% 0); }
    60%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch2 {
    0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
    20% { transform: translate(2px, 1px); clip-path: inset(40% 0 0 0); }
    35% { transform: translate(-2px, -1px); clip-path: inset(0 0 60% 0); }
    50% { transform: translate(1px, 0); clip-path: inset(20% 0 20% 0); }
    65%, 100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

.tagline {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

/* Easter egg message */
.easter-egg {
    opacity: 0;
    margin-top: 0.6rem;
    font-size: 1.1rem;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
    transition: opacity 0.8s ease;
}

.easter-egg.visible {
    opacity: 1;
}

/* Status chip */
.chip {
    margin-top: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 245, 255, 0.45);
    background: rgba(0, 0, 0, 0.45);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    backdrop-filter: blur(6px);
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

/* Animated SVG preview */
.svg-preview {
    margin-top: 2rem;
}

.svg-logo {
    width: min(420px, 80vw);
    height: auto;
}

/* Footer */
footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 4;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.7);
}

/* Micro glitch + flash hooks from JS */
body.flash {
    filter: brightness(1.3);
}

#site-title.micro-glitch {
    transform: translate3d(1px, -1px, 0);
}

/* Responsive */
@media (max-width: 480px) {
    .logo-img {
        max-width: 280px;
    }
}
