:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-1: #4f46e5;
    /* Indigo */
    --accent-2: #ec4899;
    /* Pink */
    --neon-green: #00ff41;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    right: -150px;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* System ID Top Left */
.system-id {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    /* More subtle than neon green */
    border-radius: 50%;
    opacity: 0.5;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: 16px;
    text-align: left;
    /* Aligned left for terminal feel */
    max-width: 650px;
    width: 90%;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
}

/* Terminal Line */
.terminal-line {
    font-family: var(--font-mono);
    color: var(--accent-1);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 1.2em;
    display: flex;
    align-items: center;
}

.prompt {
    margin-right: 0.5rem;
    color: var(--text-secondary);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background-color: var(--accent-1);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

/* Glitch Typography */
.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Matches bg to hide main text */
    display: block;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 8s infinite linear alternate-reverse;
    /* Slowed down to 8s for pauses */
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 8s infinite linear alternate-reverse;
}

p.animate-text-2 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Project Status Bar */
.project-status {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.redacted {
    background: var(--text-secondary);
    color: transparent;
    border-radius: 2px;
    padding: 0 4px;
    user-select: none;
}

.loader-line {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 40%;
    background: var(--accent-1);
    animation: loading 2.5s infinite ease-in-out;
}

.status-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #555;
    text-align: right;
}

/* Footer Contact */
.footer-contact {
    position: absolute;
    bottom: 3rem;
    text-align: center;
}

.email-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
}

.email-link:hover {
    border-color: var(--accent-1);
    color: white;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3);
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 0 rgba(0, 255, 65, 0);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    }

    100% {
        opacity: 0.5;
        box-shadow: 0 0 0 rgba(0, 255, 65, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes loading {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

@keyframes glitch-anim {

    0%,
    80% {
        clip: rect(0, 0, 0, 0);
    }

    /* Pause for 80% of the time */
    82% {
        clip: rect(12px, 9999px, 86px, 0);
    }

    84% {
        clip: rect(89px, 9999px, 14px, 0);
    }

    86% {
        clip: rect(32px, 9999px, 5px, 0);
    }

    88% {
        clip: rect(54px, 9999px, 44px, 0);
    }

    90% {
        clip: rect(3px, 9999px, 67px, 0);
    }

    100% {
        clip: rect(26px, 9999px, 3px, 0);
    }
}

@keyframes glitch-anim2 {

    0%,
    80% {
        clip: rect(0, 0, 0, 0);
    }

    /* Pause for 80% of the time */
    82% {
        clip: rect(65px, 9999px, 98px, 0);
    }

    84% {
        clip: rect(3px, 9999px, 4px, 0);
    }

    86% {
        clip: rect(78px, 9999px, 21px, 0);
    }

    88% {
        clip: rect(12px, 9999px, 5px, 0);
    }

    90% {
        clip: rect(4px, 9999px, 34px, 0);
    }

    100% {
        clip: rect(23px, 9999px, 87px, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 2rem;
    }
}