/* ==========================================================================
   FUTURISTIC HUD / UNDER CONSTRUCTION STYLESHEET
   Domain: kyrpy.com
   ========================================================================== */

:root {
    --bg-color: #03060f;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007b;
    --neon-purple: #9d00ff;
    --hud-border: rgba(0, 240, 255, 0.2);
    --hud-border-glow: rgba(0, 240, 255, 0.4);
    --panel-bg: rgba(3, 10, 25, 0.75);
    --text-primary: #e2f1f7;
    --text-secondary: rgba(226, 241, 247, 0.6);
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Rajdhani', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Neural Network Background Canvas */
#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* CRT Screen Scanline Overlay Effect */
.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0, 5, 20, 0.6) 100%);
    pointer-events: none;
    z-index: 99;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 240, 255, 0.05) 50%
    ), linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.02),
        rgba(0, 255, 0, 0.01),
        rgba(0, 0, 255, 0.02)
    );
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 98;
}

/* HUD Container Grid */
.hud-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-rows: 60px 1fr 50px;
    grid-template-columns: 320px 1fr 320px;
    height: 100vh;
    padding: 10px;
    gap: 15px;
}

/* Header styling */
.hud-header {
    grid-row: 1;
    grid-column: 1 / span 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--hud-border);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.05);
    background: rgba(3, 10, 25, 0.6);
    backdrop-filter: blur(8px);
    padding: 0 20px;
    clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-cyan);
    animation: pulse 1.5s infinite;
}

.status-text {
    letter-spacing: 2px;
    color: var(--neon-cyan);
}

.header-center {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 4px;
}

.glitch-title {
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    animation: titleGlow 3s infinite alternate;
}

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

.glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.header-right {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#node-clock {
    color: var(--neon-magenta);
    font-weight: bold;
    margin-left: 5px;
}

/* HUD Panels (Sidebars) */
.hud-panel {
    background: var(--panel-bg);
    border: 1px solid var(--hud-border);
    backdrop-filter: blur(12px);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05), 0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hud-panel:hover {
    border-color: var(--hud-border-glow);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1), 0 0 25px rgba(0, 240, 255, 0.05);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--hud-border);
    padding-bottom: 8px;
}

.panel-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

/* Left Panel - Terminal Logs */
.left-panel {
    grid-row: 2;
    grid-column: 1;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 85% 100%, 0 100%);
}

.terminal-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: rgba(0, 2, 8, 0.8);
    border: 1px dashed rgba(0, 240, 255, 0.15);
    border-radius: 3px;
    padding: 10px;
}

.terminal-body {
    height: 100%;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--neon-cyan);
    scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar {
    display: none;
}

.log-line {
    margin-bottom: 6px;
    opacity: 0.85;
}

.log-line.success { color: #00ff66; }
.log-line.warn { color: #ffcc00; }
.log-line.error { color: var(--neon-magenta); }
.log-line.info { color: #00f0ff; }

/* Right Panel - Diagnostics */
.right-panel {
    grid-row: 2;
    grid-column: 3;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 95%);
}

.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-card {
    background: rgba(0, 240, 255, 0.02);
    border: 1px solid rgba(0, 240, 255, 0.05);
    padding: 10px;
    border-radius: 3px;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.metric-info .label {
    color: var(--text-secondary);
}

.cyan-text { color: var(--neon-cyan); text-shadow: 0 0 5px rgba(0, 240, 255, 0.5); }
.magenta-text { color: var(--neon-magenta); text-shadow: 0 0 5px rgba(255, 0, 123, 0.5); }

.metric-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 8px var(--neon-cyan);
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

/* Network stream visualizer */
.data-stream {
    margin-top: auto;
    border-top: 1px solid var(--hud-border);
    padding-top: 15px;
}

.stream-header {
    font-family: var(--font-display);
    font-size: 0.8rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stream-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px;
    padding: 0 5px;
}

.stream-visualizer .bar {
    width: 6px;
    background: var(--neon-cyan);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 5px var(--neon-cyan);
    animation: barGrow 1.2s ease-in-out infinite alternate;
}

/* Stagger bar animations */
.stream-visualizer .bar:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.stream-visualizer .bar:nth-child(2) { height: 50%; animation-delay: 0.4s; }
.stream-visualizer .bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.stream-visualizer .bar:nth-child(4) { height: 40%; animation-delay: 0.6s; }
.stream-visualizer .bar:nth-child(5) { height: 90%; animation-delay: 0.3s; }
.stream-visualizer .bar:nth-child(6) { height: 60%; animation-delay: 0.8s; }
.stream-visualizer .bar:nth-child(7) { height: 25%; animation-delay: 0.5s; }
.stream-visualizer .bar:nth-child(8) { height: 75%; animation-delay: 0.7s; }
.stream-visualizer .bar:nth-child(9) { height: 45%; animation-delay: 0.9s; }
.stream-visualizer .bar:nth-child(10) { height: 85%; animation-delay: 0.3s; }
.stream-visualizer .bar:nth-child(11) { height: 55%; animation-delay: 0.1s; }
.stream-visualizer .bar:nth-child(12) { height: 35%; animation-delay: 0.5s; }

/* Center Stage */
.center-stage {
    grid-row: 2;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    z-index: 5;
    padding: 20px;
}

/* Hologram Portal Ring Container */
.portal-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed transparent;
}

.outer-ring {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 240, 255, 0.4);
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    animation: rotateCW 12s linear infinite;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.middle-ring {
    width: 80%;
    height: 80%;
    border-color: rgba(255, 0, 123, 0.3);
    border-left-color: var(--neon-magenta);
    border-right-color: var(--neon-magenta);
    animation: rotateCCW 8s linear infinite;
}

.inner-ring {
    width: 60%;
    height: 60%;
    border-color: rgba(157, 0, 255, 0.4);
    border-top-color: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
    animation: rotateCW 5s linear infinite;
}

.hologram-sphere {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.8) 0%, rgba(157, 0, 255, 0.3) 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 15px #fff;
    animation: pulseSphere 3s ease-in-out infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere-core {
    width: 30%;
    height: 30%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff;
}

/* Progress bar indicators */
.progress-section {
    width: 80%;
    max-width: 450px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.progress-bar-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hud-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta));
    box-shadow: 0 0 10px var(--neon-cyan);
    width: 42%;
    transition: width 0.4s ease;
}

/* Countdown Clock styling */
.countdown-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(3, 10, 25, 0.8);
    border: 1px solid var(--hud-border);
    border-radius: 4px;
    padding: 10px 15px;
    min-width: 70px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.time-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.time-label {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 4px;
}

.time-divider {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 123, 0.5);
    animation: blink 1s step-end infinite;
}

/* Call To Action Form */
.cta-container {
    width: 80%;
    max-width: 480px;
    text-align: center;
}

.cta-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.subscribe-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    background: rgba(0, 2, 8, 0.6);
    border: 1px solid var(--hud-border);
    border-radius: 4px;
    padding: 4px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.hud-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px 15px;
}

.hud-input::placeholder {
    color: rgba(226, 241, 247, 0.35);
}

.hud-button {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    border-radius: 3px;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hud-button:hover {
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--neon-cyan);
    text-shadow: none;
}

.success-message {
    display: none;
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #00ff66;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.4);
    animation: pulseSuccess 2s infinite;
}

/* Footer layout */
.hud-footer {
    grid-row: 3;
    grid-column: 1 / span 3;
    border-top: 2px solid var(--hud-border);
    background: rgba(3, 10, 25, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    clip-path: polygon(2% 0, 98% 0, 100% 100%, 0 100%);
}

.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.glitch-link {
    color: var(--neon-cyan);
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease;
}

.glitch-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.divider {
    color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes pulseSphere {
    0% { transform: scale(1); opacity: 0.7; box-shadow: 0 0 20px var(--neon-cyan); }
    100% { transform: scale(1.08); opacity: 1; box-shadow: 0 0 40px var(--neon-cyan), 0 0 60px var(--neon-purple); }
}

@keyframes rotateCW {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCCW {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes barGrow {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.1); }
    to { text-shadow: 0 0 15px rgba(0, 240, 255, 0.6), 0 0 30px rgba(0, 240, 255, 0.3); }
}

@keyframes pulseSuccess {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Glitch effects */
@keyframes glitch-anim {
    0% { clip: rect(15px, 9999px, 66px, 0); }
    10% { clip: rect(85px, 9999px, 5px, 0); }
    20% { clip: rect(34px, 9999px, 98px, 0); }
    30% { clip: rect(74px, 9999px, 12px, 0); }
    40% { clip: rect(5px, 9999px, 87px, 0); }
    50% { clip: rect(98px, 9999px, 54px, 0); }
    60% { clip: rect(12px, 9999px, 23px, 0); }
    70% { clip: rect(88px, 9999px, 78px, 0); }
    80% { clip: rect(43px, 9999px, 5px, 0); }
    90% { clip: rect(66px, 9999px, 99px, 0); }
    100% { clip: rect(17px, 9999px, 45px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 15px, 0); }
    15% { clip: rect(5px, 9999px, 85px, 0); }
    30% { clip: rect(98px, 9999px, 34px, 0); }
    45% { clip: rect(12px, 9999px, 74px, 0); }
    60% { clip: rect(87px, 9999px, 5px, 0); }
    75% { clip: rect(54px, 9999px, 98px, 0); }
    90% { clip: rect(23px, 9999px, 12px, 0); }
    100% { clip: rect(78px, 9999px, 88px, 0); }
}

/* Custom animations for loads */
@keyframes loadShift1 {
    0%, 100% { width: 82%; }
    50% { width: 87%; }
}
@keyframes loadShift2 {
    0%, 100% { width: 74%; }
    50% { width: 79%; }
}
.load-anim-1 {
    animation: loadShift1 4s ease-in-out infinite;
}
.load-anim-2 {
    animation: loadShift2 3s ease-in-out infinite;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hud-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 60px 1fr 1fr 50px;
        overflow-y: auto;
    }
    .hud-header {
        grid-column: 1 / span 2;
    }
    .left-panel {
        grid-row: 2;
        grid-column: 1;
        clip-path: none;
    }
    .right-panel {
        grid-row: 2;
        grid-column: 2;
        clip-path: none;
    }
    .center-stage {
        grid-row: 3;
        grid-column: 1 / span 2;
    }
    .hud-footer {
        grid-column: 1 / span 2;
    }
    body {
        overflow: auto;
    }
}

@media (max-width: 768px) {
    .hud-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        height: auto;
        padding: 5px;
    }
    .hud-header {
        grid-row: 1;
        grid-column: 1;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        clip-path: none;
    }
    .left-panel {
        grid-row: 3;
        grid-column: 1;
        min-height: 250px;
    }
    .center-stage {
        grid-row: 2;
        grid-column: 1;
        padding: 40px 10px;
    }
    .right-panel {
        grid-row: 4;
        grid-column: 1;
    }
    .hud-footer {
        grid-row: 5;
        grid-column: 1;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        clip-path: none;
    }
    .time-block {
        min-width: 60px;
        padding: 8px 10px;
    }
    .time-num {
        font-size: 1.8rem;
    }
}
