@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-deep-navy: #030712;
    --bg-panel: rgba(10, 15, 30, 0.6);
    --accent-cyan: #00f2ff;
    --accent-blue: #1d4ed8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glow-cyan: 0 0 20px rgba(0, 242, 255, 0.15);
}

body {
    background-color: var(--bg-deep-navy);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.8;
}

h1, h2, h3, .heading-futuristic {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 300;
}

/* Fluid UI Elements instead of rigid cards */
.fluid-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 255, 0.05);
    border-radius: 24px;
    box-shadow: var(--glow-cyan);
    transition: all 0.4s ease;
}

.fluid-panel:hover {
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

/* Subtle AI Animations */
.scanline {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 242, 255, 0.5), transparent);
    animation: scan 6s linear infinite;
    opacity: 0.5;
}

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

.node-pulse {
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
    100% { box-shadow: 0 0 25px rgba(0, 242, 255, 0.6); }
}

/* Flowing Connection Lines */
.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    height: 1px;
    width: 100%;
    opacity: 0.3;
}

/* --- Esther Hologram Identity Visualization --- */
.esther-hologram-container {
    position: relative;
    /* Subtle bobbing animation */
    animation: holo-float 8s ease-in-out infinite;
}

.esther-hologram-img {
    /* Apply holographic tint and initial blur */
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.6)) hue-rotate(180deg) brightness(1.3);
    opacity: 0.85;
    transition: all 0.5s ease;
    /* Simulate scanlines directly on image */
    background: linear-gradient(rgba(0, 242, 255, 0.1) 50%, transparent 50%);
    background-size: 100% 4px;
}

/* On hover, image becomes clearer, simulating focus */
.esther-hologram-container:hover .esther-hologram-img {
    filter: drop-shadow(0 0 25px rgba(0, 242, 255, 0.9)) hue-rotate(0deg) brightness(1);
    opacity: 1;
}

/* Glare overlay effect across portrait */
.esther-hologram-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

/* Flicker Animation */
.esther-flicker {
    animation: holo-flicker 5s linear infinite;
}

/* Keyframes: Subtle vertical floating */
@keyframes holo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Keyframes: Random flickering intensity changes */
@keyframes holo-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.85; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.3; transform: scaleY(0.995) skewX(0.5deg); }
}

/* --- Refined Esther Hologram Identity Visualization --- */
.esther-hologram-container {
    position: relative;
    animation: holo-float 8s ease-in-out infinite;
    display: inline-block;
}

.esther-hologram-img {
    /* Removed hue-rotate for clarity. Softened drop shadow. */
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.3));
    opacity: 0.95;
    transition: all 0.5s ease;
    /* Extremely subtle scanline so the face remains clear */
    background: linear-gradient(rgba(0, 242, 255, 0.03) 50%, transparent 50%);
    background-size: 100% 4px;
}

.esther-hologram-container:hover .esther-hologram-img {
    filter: drop-shadow(0 0 40px rgba(0, 242, 255, 0.6));
    opacity: 1;
}

/* Softer glare overlay */
.esther-hologram-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Smoother Flicker Animation */
.esther-flicker {
    animation: holo-flicker 8s linear infinite;
}

@keyframes holo-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes holo-flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% { opacity: 0.95; }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% { opacity: 0.7; }
}

/* --- Form & Input Accessibility Styles --- */
.esther-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

.esther-input:focus, .esther-input:active {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.esther-input::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.esther-label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Accessible focus states for buttons */
button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* --- Esther Premium Terminal Button --- */
.esther-terminal-btn {
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1), inset 0 0 10px rgba(0, 242, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.esther-terminal-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: #00f2ff;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4), inset 0 0 15px rgba(0, 242, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}

/* --- Esther Premium Terminal Button --- */
.esther-terminal-btn {
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.4);
    color: #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1), inset 0 0 10px rgba(0, 242, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.esther-terminal-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: #00f2ff;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.4), inset 0 0 15px rgba(0, 242, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.8);
}
