/* ==========================================================================
   CSS DIRECTIVE: SCI-FI / SPACE HUD PORTFOLIO
   DESIGNED FOR: SHENDY HERMADI PAILAN
   ========================================================================== */

/* 1. CORE DESIGN SYSTEM & VARIABLES */
:root {
    --bg-space: #02010c;
    --bg-void: #03001e;
    
    /* Neon HSL Color Accents */
    --neon-cyan: hsl(180, 100%, 50%);
    --neon-cyan-glow: hsla(180, 100%, 50%, 0.35);
    
    --neon-magenta: hsl(315, 100%, 55%);
    --neon-magenta-glow: hsla(315, 100%, 55%, 0.35);
    
    --neon-yellow: hsl(50, 100%, 50%);
    --neon-yellow-glow: hsla(50, 100%, 50%, 0.3);

    --neon-green: hsl(120, 100%, 45%);
    --neon-green-glow: hsla(120, 100%, 45%, 0.35);

    --neon-blue: hsl(220, 100%, 55%);
    --neon-blue-glow: hsla(220, 100%, 55%, 0.35);

    /* Glass Panels */
    --glass-bg: rgba(3, 1, 15, 0.65);
    --glass-border: rgba(180, 100, 255, 0.15);
    --glass-blur: blur(12px);

    /* Typography */
    --font-header: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    --transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. RESET & GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-space);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Starfield Canvas background fixed */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(circle at center, #0d0630 0%, #03001e 70%, #02010c 100%);
}

/* 3. SCI-FI HUD SCANLINE OVERLAYS */
.hud-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.35;
}

.hud-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(
        circle, 
        rgba(0,0,0,0) 50%, 
        rgba(2, 1, 12, 0.85) 100%
    );
    z-index: 999;
    pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 1, 15, 0.9);
}
::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--neon-cyan);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-magenta);
    box-shadow: 0 0 15px var(--neon-magenta);
}

/* 4. AUDIO CONTROLLER HUD */
.audio-hud-control {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 1100;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    transition: var(--transition-fast);
    backdrop-filter: var(--glass-blur);
}

.audio-hud-control:hover {
    color: #fff;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 15px var(--neon-magenta-glow);
    transform: scale(1.1);
}

.audio-hud-control svg {
    width: 20px;
    height: 20px;
}

.audio-hud-control.muted {
    color: #4a5568;
    border-color: #4a5568;
    box-shadow: none;
}

.audio-hud-control.muted .waves {
    display: none;
}

.audio-hud-control .hud-tooltip {
    position: absolute;
    right: 55px;
    background: var(--bg-space);
    border: 1px solid var(--neon-cyan);
    padding: 4px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    transform: translateX(10px);
}

.audio-hud-control:hover .hud-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* 5. HUD HEADER & NAVIGATION */
.hud-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.hud-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 15px 30px;
    border-bottom: 2px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 242, 254, 0.05);
    margin-bottom: 20px;
    position: relative;
}

.hud-header::before, .hud-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 15px;
    height: 6px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}
.hud-header::before { left: -1px; }
.hud-header::after { right: -1px; }

.hud-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.glowing-orb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    position: relative;
}

.glowing-orb.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--neon-cyan);
    animation: orbPulse 2s infinite linear;
}

@keyframes orbPulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.brand-text h1 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.sub-telemetry {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.hud-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    padding: 8px 12px;
    position: relative;
}

.nav-num {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-right: 4px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    transform: scaleX(0);
    transition: var(--transition-fast);
}

.nav-link.active::after, .nav-link:hover::after {
    transform: scaleX(1);
}

.hud-status-panel {
    display: flex;
    align-items: center;
    gap: 25px;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item .lbl {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #718096;
}

.progress-bar-container {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.core-temp .val {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--neon-magenta);
    text-shadow: 0 0 5px var(--neon-magenta-glow);
    font-weight: bold;
}

/* 6. GLASS PANEL DEFINE (GLASSMORPHISM) */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Neon glow border themes */
.border-glow-cyan {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.03);
}
.border-glow-cyan::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: borderScan 4s infinite linear;
}

.border-glow-magenta {
    border-color: rgba(236, 56, 188, 0.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(236, 56, 188, 0.03);
}
.border-glow-magenta::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent);
    animation: borderScan 4s infinite linear;
    animation-delay: 2s;
}

.border-glow-blue {
    border-color: rgba(0, 110, 255, 0.25);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 110, 255, 0.03);
}

@keyframes borderScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.panel-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: #a0aec0;
}

.window-controls {
    display: flex;
    gap: 6px;
}
.window-controls span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.window-controls span:nth-child(1) { background: #ff5f56; }
.window-controls span:nth-child(2) { background: #ffbd2e; }
.window-controls span:nth-child(3) { background: #27c93f; }

.panel-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 7. HERO SECTION INTERFACES */
.hud-section {
    display: none;
    animation: sectionFadeIn 0.6s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1;
}

.hud-section.active {
    display: flex;
    flex-direction: column;
}

@keyframes sectionFadeIn {
    0% { opacity: 0; transform: translateY(15px) scale(0.99); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 20px;
    flex: 1;
    min-height: 550px;
}

.telemetry-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    border-radius: 4px;
    color: #4a5568;
    margin-bottom: 25px;
}

.telemetry-log p {
    margin-bottom: 4px;
}

.telemetry-log .timestamp {
    color: var(--neon-cyan);
    opacity: 0.8;
}

.hero-greeting {
    font-family: var(--font-header);
    font-size: 18px;
    color: var(--neon-cyan);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.typing-text {
    color: var(--neon-magenta);
    position: relative;
    text-shadow: 0 0 10px var(--neon-magenta-glow);
}

.typing-text::after {
    content: '|';
    animation: blinkCursor 0.7s infinite alternate;
}

@keyframes blinkCursor {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-description {
    font-size: 16px;
    color: #cbd5e0;
    max-width: 90%;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Sci-fi Glow Buttons */
.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-header);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 15px 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-space);
    border: none;
    box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Holographic Avatar Section */
.centering-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-holo-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--neon-magenta);
    position: relative;
    z-index: 5;
    background: #03001e;
    box-shadow: 0 0 20px var(--neon-magenta-glow);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
    transition: var(--transition-medium);
}

.avatar-holo-wrapper:hover .avatar-image {
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
    transform: scale(1.05);
}

.avatar-glow-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 1px dashed var(--neon-cyan);
    animation: rotateRing 20s infinite linear;
    z-index: 2;
}

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

.holo-scanline {
    position: absolute;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, transparent, var(--neon-magenta), transparent);
    z-index: 6;
    left: 0;
    pointer-events: none;
    animation: holoScan 3.5s infinite linear;
    opacity: 0.6;
}

@keyframes holoScan {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Hologram elements corner indicators */
.hud-crosshair {
    position: absolute;
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}
.upper-left { top: 0; left: 0; }
.upper-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; }
.bottom-right { bottom: 0; right: 0; }

.biometric-readings {
    width: 100%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.reading-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #718096;
}

.val-highlight {
    color: #fff;
}

.glow-cyan-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

/* 8. ABOUT DOSSIER INTERFACES */
.dossier-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
}

.cyan-text { color: var(--neon-cyan); }
.magenta-text { color: var(--neon-magenta); }

.dossier-p {
    font-size: 15px;
    line-height: 1.7;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.stat-counter-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: var(--transition-fast);
}

.stat-counter-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
}

.counter-num {
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.counter-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Capability Bars */
.skill-bar-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 6px;
    color: #a0aec0;
}

.skill-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0; /* Dynamic loading in app.js or pure css animation if preferred */
    border-radius: 4px;
    box-shadow: 0 0 8px currentColor;
    background-color: currentColor;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.bg-cyan { color: var(--neon-cyan); }
.bg-magenta { color: var(--neon-magenta); }
.bg-yellow { color: var(--neon-yellow); }

/* 9. EXPERTISE MATRIX STYLING */
.full-width-panel {
    width: 100%;
}

.text-center { text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.glass-panel-inner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 25px;
    position: relative;
    transition: var(--transition-medium);
    overflow: hidden;
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--neon-cyan);
    transition: var(--transition-medium);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.05);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.icon-cyan {
    color: var(--neon-cyan);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.icon-magenta {
    color: var(--neon-magenta);
    border-color: rgba(236, 56, 188, 0.2);
    box-shadow: 0 0 10px rgba(236, 56, 188, 0.1);
}

.icon-yellow {
    color: var(--neon-yellow);
    border-color: rgba(250, 210, 0, 0.2);
    box-shadow: 0 0 10px rgba(250, 210, 0, 0.1);
}

.service-card h3 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.service-card p {
    font-size: 14px;
    color: #a0aec0;
}

.card-decor {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

/* 10. COMMAND CONSOLE TERMINAL */
.terminal-panel {
    background: #030113;
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 242, 254, 0.05);
}

.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--neon-green);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation: greenPulse 1.5s infinite ease-in-out;
}

@keyframes greenPulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.4; }
}

.console-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    font-family: var(--font-mono);
    color: #cbd5e0;
    max-height: 500px;
}

.console-welcome {
    margin-bottom: 20px;
}

.ascii-art {
    font-size: 11px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
    line-height: 1.1;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: pre;
}

.terminal-log-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 10px;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 15px;
}

.terminal-prompt {
    color: var(--neon-magenta);
    white-space: nowrap;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 15px;
    caret-color: var(--neon-cyan);
}

.terminal-line {
    line-height: 1.4;
}

.terminal-input-echo {
    color: #a0aec0;
}

.terminal-error {
    color: #ff5f56;
}

.terminal-success {
    color: var(--neon-green);
}

/* 11. PORTFOLIO ARCHIVES */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    color: #fff;
    border-color: var(--neon-magenta);
    background: rgba(236, 56, 188, 0.05);
    box-shadow: 0 0 10px var(--neon-magenta-glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    height: 100%;
    transition: var(--transition-medium);
}

.portfolio-item:hover {
    border-color: rgba(236, 56, 188, 0.2);
    box-shadow: 0 10px 25px rgba(236, 56, 188, 0.05);
    transform: translateY(-4px);
}

.item-visual {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #03001e;
}

.item-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.portfolio-item:hover .item-visual img {
    transform: scale(1.05);
}

.visual-scanner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: holoScan 3s infinite linear;
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-fast);
}

.portfolio-item:hover .visual-scanner {
    opacity: 0.6;
}

.item-visual-placeholder {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 11px;
    color: #718096;
}

.item-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--neon-cyan);
}

.portfolio-item[data-category="design-video"] .item-tag {
    color: var(--neon-magenta);
}

.portfolio-item[data-category="3d-rendering"] .item-tag {
    color: var(--neon-yellow);
}

.item-details h4 {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.item-details p {
    font-size: 13px;
    color: #a0aec0;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 9px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #cbd5e0;
    padding: 2px 6px;
    border-radius: 2px;
}

/* 12. FOOTER HUD & SECURE CTA PORTAL */
.hud-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 15px 30px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #718096;
    border-top: 2px solid rgba(236, 56, 188, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(236, 56, 188, 0.05);
    position: relative;
    z-index: 10;
}

.hud-footer::before, .hud-footer::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 15px;
    height: 6px;
    background: var(--neon-magenta);
    box-shadow: 0 0 10px var(--neon-magenta);
}
.hud-footer::before { left: -1px; }
.hud-footer::after { right: -1px; }

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan-glow);
}

.glow-blink {
    animation: textBlink 2.5s infinite alternate;
}

@keyframes textBlink {
    0%, 95% { opacity: 1; }
    96%, 98% { opacity: 0.2; }
    99%, 100% { opacity: 1; }
}

.whatsapp-hud-portal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-cta-portal {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--neon-green);
    font-weight: bold;
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 0, 0.02);
    padding: 8px 18px;
    border-radius: 4px;
    letter-spacing: 1px;
    transition: var(--transition-medium);
    position: relative;
    box-shadow: 0 0 10px var(--neon-green-glow);
}

.glow-cta-portal:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(0, 255, 0, 0.08);
    box-shadow: 0 0 20px rgba(255,255,255,0.2), 0 0 15px var(--neon-green-glow);
    transform: scale(1.03);
}

.pulse-ring {
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 4px;
    border: 1px solid var(--neon-green);
    pointer-events: none;
    animation: ringPulse 2s infinite ease-out;
}

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.15, 1.3); opacity: 0; }
}

/* 13. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .hero-avatar-panel {
        order: -1;
    }
    
    .dossier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hud-container {
        padding: 10px;
    }
    
    .hud-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .hud-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }
    
    .hud-status-panel {
        display: none;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .hud-btn {
        width: 100%;
        justify-content: center;
    }
    
    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .hud-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .whatsapp-hud-portal {
        width: 100%;
    }
    
    .glow-cta-portal {
        width: 100%;
        justify-content: center;
    }
}

/* 14. INTERACTIVE SPLASH SCREEN PORTAL */
#splash-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #070321 0%, #02010c 100%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

#splash-portal.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.08);
}

.splash-hud-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ring-outer {
    top: 0; left: 0; right: 0; bottom: 0;
    border-top-color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    animation: rotateOuterStar 4s infinite linear;
    filter: drop-shadow(0 0 8px var(--neon-cyan-glow));
}

.ring-inner {
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border-left-color: var(--neon-magenta);
    border-right-color: var(--neon-magenta);
    animation: rotateInnerStar 2.5s infinite linear reverse;
    filter: drop-shadow(0 0 8px var(--neon-magenta-glow));
}

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

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

.splash-lock-graphic {
    position: absolute;
    width: 44px;
    height: 44px;
    color: var(--neon-cyan);
    animation: pulseIcon 2s infinite ease-in-out;
    filter: drop-shadow(0 0 10px var(--neon-cyan-glow));
}

.splash-lock-graphic.unlocked {
    color: var(--neon-green) !important;
    filter: drop-shadow(0 0 15px var(--neon-green-glow)) !important;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.splash-telemetry-panel {
    width: 100%;
    max-width: 460px;
    background: rgba(3, 1, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--glass-blur);
}

.splash-logs {
    min-height: 90px;
    max-height: 90px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--neon-cyan);
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.4;
    padding-right: 5px;
}

.splash-log-line {
    margin: 0;
    opacity: 0.85;
}

.splash-log-line.ok {
    color: var(--neon-green);
}

.splash-loader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
}

.splash-loader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.15s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.splash-percentage-text {
    font-family: var(--font-mono);
    font-size: 10px;
    text-align: center;
    color: #718096;
    letter-spacing: 2px;
    text-transform: uppercase;
}

