/* ==========================================================================
   SysAdmin & DevOps Terminal Portfolio v4.0 - Design System
   Aesthetic: Cyberpunk / Matrix HUD & High-Contrast CAD Blueprint
   ========================================================================== */

:root {
    /* Color Palette - Dark Matrix HUD (Default) */
    --bg-main: #05070a;
    --bg-card: rgba(13, 17, 23, 0.75);
    --bg-card-hover: rgba(18, 24, 34, 0.85);
    --border-color: #30363d;
    --border-highlight: rgba(0, 212, 255, 0.35);
    
    --accent-blue: #00d4ff;
    --accent-blue-glow: rgba(0, 212, 255, 0.35);
    --accent-blue-dim: rgba(0, 212, 255, 0.1);
    
    --matrix-green: #00ff41;
    --matrix-green-glow: rgba(0, 255, 65, 0.35);
    --success-green: #238636;
    --error-red: #f85149;
    --warn-yellow: #faff00;
    
    --text-main: #e6edf3;
    --text-dim: #8b949e;
    --text-subtle: #6e7681;
    
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --corner-clip: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 10%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 100%, 100% 4px, 3px 100%;
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-main);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 14.5px;
    line-height: 1.65;
    min-height: 100vh;
    padding: 20px 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #58a6ff;
    text-shadow: 0 0 8px var(--accent-blue-glow);
}

/* CRT Scanline Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.12) 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% 3px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
    transform: translateZ(0);
}

.container {
    width: 98%;
    max-width: 2400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & System Title
   ========================================================================== */

.main-system-title {
    margin-bottom: 12px;
    padding: 0 4px;
}

.main-system-title h1 {
    font-size: 0.85em;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.main-system-title h1::before {
    content: "ID_SISTEMA:";
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 0.9em;
    text-shadow: 0 0 10px var(--accent-blue-glow);
}

.title-decor {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, rgba(0, 212, 255, 0.2) 60%, transparent 100%);
    margin-top: 6px;
    opacity: 0.6;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), inset 0 0 15px var(--accent-blue-dim);
    flex-wrap: wrap;
    gap: 12px;
}

.header-title {
    color: var(--accent-blue);
    font-size: 1.1em;
    font-weight: 700;
    text-shadow: 0 0 10px var(--accent-blue-glow);
    white-space: nowrap;
}

.prompt { 
    color: var(--matrix-green);
    text-shadow: 0 0 8px var(--matrix-green-glow);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-blue);
}

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

.header-domain {
    color: var(--text-dim);
    font-size: 0.82em;
    letter-spacing: 1.5px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(48, 54, 61, 0.5);
}

/* ==========================================================================
   Status Row & Controls
   ========================================================================== */

.status-row {
    display: flex;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
}

.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    color: var(--accent-blue);
    background: var(--accent-blue-dim);
}

.lang-btn.active {
    color: #05070a;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    font-weight: 700;
}

.theme-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 10px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    cursor: pointer;
    font-size: 1.1em;
    padding: 4px;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--accent-blue-dim);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    transform: rotate(15deg);
}

.status-bar {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 18px;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #0d1117;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(48, 54, 61, 0.5);
}

.progress-fill {
    width: 85%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #58a6ff, var(--accent-blue));
    background-size: 200% 100%;
    box-shadow: 0 0 12px var(--accent-blue);
    position: relative;
    animation: 
        pulse-width 6s ease-in-out infinite,
        shimmer 2.5s linear infinite;
}

@keyframes pulse-width {
    0%, 100% { width: 85%; }
    50% { width: 89%; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.status-text {
    font-size: 0.8em;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--matrix-green);
    box-shadow: 0 0 8px var(--matrix-green);
    animation: beacon-pulse 1.8s infinite;
}

@keyframes beacon-pulse {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--matrix-green); }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--matrix-green); }
    100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 4px var(--matrix-green); }
}

/* ==========================================================================
   Dashboard Grid & Cards
   ========================================================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 18px;
    width: 100%;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Cybernetic HUD Top Accent */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-blue-glow);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.pinned {
    grid-row: span 2;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

#experience { grid-column: span 2; }
#skills { grid-column: span 2; }
#logs-card { grid-column: span 2; }

.card-disabled {
    opacity: 0.35;
    filter: grayscale(1);
    cursor: not-allowed;
    border-style: dashed;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(22, 27, 34, 0.6);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.card-header h2 {
    color: var(--accent-blue);
    font-size: 0.88em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px var(--accent-blue-glow);
}

.pinned .card-header h2::before {
    content: "[ALTA] ";
    font-size: 0.75em;
    color: var(--error-red);
    margin-right: 4px;
}

.pinned .card-header h2::after {
    content: " 📌";
    font-size: 0.85em;
}

.info-icon {
    color: var(--text-dim);
    opacity: 0.5;
    font-size: 1.1em;
    cursor: default;
    flex-shrink: 0;
    margin-left: 8px;
    transition: var(--transition-fast);
}

.card:hover .info-icon {
    opacity: 0.9;
    color: var(--accent-blue);
}

.card-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Data Rows & Interactive Elements
   ========================================================================== */

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
    transition: var(--transition-fast);
}

.data-row:last-child {
    border-bottom: none;
}

.data-row:hover {
    background: rgba(0, 212, 255, 0.03);
    padding-left: 6px;
}

.data-label {
    color: var(--text-dim);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.data-value {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.85em;
    text-align: right;
    word-break: break-word;
    min-width: 0;
    flex: 1;
}

#system-info .data-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

#system-info .data-label {
    min-width: auto;
    color: var(--accent-blue);
    font-size: 0.80em;
}

#system-info .data-value {
    text-align: left;
    width: 100%;
    color: var(--text-main);
    font-size: 0.86em;
    line-height: 1.5;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.project-card:hover {
    color: var(--text-main);
    text-shadow: none;
}

.project-card:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

.project-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--accent-blue);
    font-size: 1em;
}

/* Avatar Card */
.avatar-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    margin: 0 auto 16px;
    display: block;
    object-fit: cover;
    padding: 4px;
    background: radial-gradient(circle, var(--accent-blue-dim) 0%, transparent 70%);
    box-shadow: 0 0 25px var(--accent-blue-glow);
    transition: var(--transition);
}

.avatar-image:hover {
    transform: scale(1.04);
    box-shadow: 0 0 35px var(--accent-blue);
}

.avatar-glitch {
    animation: avatar-flicker 4s infinite alternate;
}

@keyframes avatar-flicker {
    0%, 95%, 98% { opacity: 1; filter: brightness(1); }
    96% { opacity: 0.85; filter: brightness(1.2) hue-rotate(45deg); }
    97% { opacity: 0.9; filter: brightness(0.8) contrast(1.4); }
}

/* Interactive Box Elements */
.interactive-box {
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
    border: 1px solid rgba(48, 54, 61, 0.4);
    background: rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: fit-content;
}

.cert-group {
    flex-shrink: 0;
    margin-bottom: 12px;
}

.interactive-box:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.interactive-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-blue);
    opacity: 0;
    transition: var(--transition-fast);
}

.interactive-box:hover::before {
    opacity: 1;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-tag {
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
}

.job-title {
    font-size: 0.94em;
    font-weight: 700;
    color: var(--text-main);
}

.log-metadata {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.company {
    font-weight: 600;
}

.company a {
    color: var(--accent-blue);
}

.company a::after,
.data-value a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.85em;
    display: inline-block;
    transition: transform 0.2s;
}

.company a:hover::after,
.data-value a[target="_blank"]:hover::after {
    transform: translate(2px, -2px);
}

.separator {
    color: var(--text-subtle);
}

.date-range {
    font-style: italic;
    color: var(--text-dim);
}

.log-details {
    border-top: 1px solid rgba(48, 54, 61, 0.25);
    padding-top: 8px;
}

.log-entry {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 0.88em;
    color: var(--text-main);
}

.category-label {
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent-blue-dim);
}

.cert-name {
    font-weight: 700;
    color: var(--accent-blue);
    margin-right: 5px;
}

.skill-desc {
    font-size: 0.85em;
    color: var(--text-dim);
}

.box-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 700;
}

.date-tag {
    font-size: 0.88em;
    color: var(--text-dim);
    opacity: 0.85;
    margin-left: 6px;
}

.cert-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cert-details {
    flex: 1 1 auto;
    min-width: 0;
}

.cert-link-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.76em;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-link-btn:hover {
    background: var(--accent-blue);
    color: #05070a;
    box-shadow: 0 0 8px var(--accent-blue-glow);
    text-decoration: none;
}

/* ==========================================================================
   Action Buttons (Cyberpunk Cut Corner)
   ========================================================================== */

.action-btn {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 12px 20px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82em;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: var(--corner-clip);
    outline: none;
}

.action-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.action-btn:hover {
    background: var(--accent-blue);
    color: #05070a;
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

.action-btn:hover::after {
    left: 100%;
    top: 100%;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.5);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* ==========================================================================
   Live System Logs Viewport (Phosphor Matrix Look)
   ========================================================================== */

.log-viewport {
    overflow-y: auto;
    max-height: 480px;
}

#logs-card .log-viewport {
    height: 380px;
    background: #000;
    border: 1px solid #003b00;
    box-shadow: inset 0 0 15px rgba(0, 59, 0, 0.6);
    color: var(--matrix-green);
    font-family: var(--font-mono);
    padding: 10px;
    border-radius: 4px;
}

#logs-card .log-entry {
    font-size: 0.86em;
    line-height: 1.45;
    margin-bottom: 4px;
    border-left: 2px solid transparent;
    padding-left: 6px;
    word-break: break-word;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #05070a;
}

::-webkit-scrollbar-thumb {
    background: #161b22;
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Terminal Utility Colors & Highlights */
.bg-green-black { background: #00ff41; color: #000; padding: 0 4px; border-radius: 2px; font-weight: bold; }
.bg-red-white { background: #ff0000; color: #fff; padding: 0 4px; border-radius: 2px; font-weight: bold; }
.bg-yellow-black { background: #faff00; color: #000; padding: 0 4px; border-radius: 2px; font-weight: bold; }
.bg-blue-white { background: #00d4ff; color: #000; padding: 0 4px; border-radius: 2px; font-weight: bold; }

.text-matrix-green { color: #00ff41; text-shadow: 0 0 6px rgba(0, 255, 65, 0.5); }
.text-matrix-yellow { color: #faff00; text-shadow: 0 0 6px rgba(250, 255, 0, 0.5); }
.text-green { color: var(--matrix-green); }
.text-blue { color: var(--accent-blue); }
.text-gray { color: var(--text-dim); }
.text-dim { color: var(--text-dim); }
.text-red { color: var(--error-red); }

.log-info { color: #00ff41; }
.log-warn { color: #faff00; }
.log-fail { color: #ff3131; }
.log-auth { color: #00d4ff; }
.log-crit { color: #ff0000; font-weight: bold; animation: blink 0.6s step-end infinite; }
.log-debug { color: #8b949e; opacity: 0.7; }

/* ==========================================================================
   Modals & Dialogs (Cyberpunk HUD Interface)
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    width: 90%;
    max-width: 650px;
    background: rgba(13, 17, 23, 0.96);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 25px var(--accent-blue-dim);
    position: relative;
    clip-path: var(--corner-clip);
    animation: modal-drop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-drop {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-container .card-header {
    background: rgba(22, 27, 34, 0.9);
    border-bottom: 1px solid var(--accent-blue);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.4em;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.close-btn:hover,
.close-btn:focus-visible {
    color: var(--accent-blue);
    text-shadow: 0 0 8px var(--accent-blue-glow);
    outline: none;
}

.modal-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    padding: 10px 12px;
    width: 100%;
    font-size: 0.88em;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-blue-dim);
}

.modal-container .data-row.vertical {
    flex-direction: column;
    align-items: flex-start;
}

.custom-alert-box {
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* ==========================================================================
   Footer & Helpers
   ========================================================================== */

.terminal-footer {
    margin-top: 40px;
    padding: 24px 0 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.82em;
    color: var(--text-dim);
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    font-size: 1.8em;
    animation: bounce 2s infinite;
    z-index: 999;
    opacity: 0.6;
    pointer-events: none;
    text-shadow: 0 0 10px var(--accent-blue);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-8px) translateX(-50%); }
    60% { transform: translateY(-4px) translateX(-50%); }
}

.text-small { font-size: 0.86em; }
.text-smaller { font-size: 0.88em; }
.text-center { text-align: center; }
.p-20 { padding: 20px; }
.mb-15 { margin-bottom: 15px; }
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }
.w-100 { width: 100%; }
.resize-v { resize: vertical; }

/* ==========================================================================
   Light Mode (High-Contrast CAD Blueprint System)
   ========================================================================== */

.light-mode {
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fbff;
    --border-color: #0969da;
    --border-highlight: rgba(9, 105, 218, 0.5);
    
    --accent-blue: #0969da;
    --accent-blue-glow: rgba(9, 105, 218, 0.2);
    --accent-blue-dim: rgba(9, 105, 218, 0.08);
    
    --matrix-green: #1a7f37;
    --matrix-green-glow: rgba(26, 127, 55, 0.2);
    --success-green: #1a7f37;
    --error-red: #cf222e;
    --warn-yellow: #9a6700;
    
    --text-main: #011627;
    --text-dim: #052c48;
    --text-subtle: #57606a;
}

.light-mode html {
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(to right, rgba(9, 105, 218, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(9, 105, 218, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    scrollbar-color: #0969da #e1e8f0;
}

.light-mode .scanlines {
    display: none;
}

.light-mode .top-bar, 
.light-mode .card, 
.light-mode .interactive-box,
.light-mode .status-bar,
.light-mode .lang-switcher,
.light-mode .theme-switcher {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border: 1.5px solid var(--border-color);
    box-shadow: 3px 3px 0px rgba(9, 105, 218, 0.18);
}

.light-mode .card:hover {
    box-shadow: 5px 5px 0px rgba(9, 105, 218, 0.25);
    transform: translateY(-3px);
}

.light-mode .card-header {
    background: #f1f8ff;
    border-bottom: 1.5px solid var(--border-color);
}

.light-mode .interactive-box {
    background: #fbfcfe;
    border: 1px solid #c8d8ec;
}

.light-mode .interactive-box:hover {
    background: #f0f7ff;
    border-color: #0969da;
}

.light-mode .cert-link-btn {
    color: #0969da;
    background: #ddf4ff;
    border: 1px solid #54aeff;
}

.light-mode .cert-link-btn:hover {
    background: #0969da;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(9, 105, 218, 0.25);
}

.light-mode #logs-card .log-viewport {
    background: #f6f8fa;
    border: 1.5px solid #d0d7de;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.08);
    color: #1f2328;
}

.light-mode #logs-card .log-entry {
    color: #1f2328;
}

.light-mode #logs-card .log-entry:hover {
    background: rgba(9, 105, 218, 0.06);
}

.light-mode #logs-card .text-gray {
    color: #57606a;
}

.light-mode #logs-card .text-blue {
    color: #0969da;
    font-weight: 700;
}

.light-mode #logs-card .log-info {
    color: #1a7f37;
    font-weight: 600;
}

.light-mode #logs-card .log-warn {
    color: #9a6700;
    font-weight: 600;
}

.light-mode #logs-card .log-fail {
    color: #cf222e;
    font-weight: 700;
}

.light-mode #logs-card .log-auth {
    color: #0969da;
    font-weight: 600;
}

.light-mode #logs-card .log-crit {
    color: #cf222e;
    font-weight: 700;
    background: rgba(207, 34, 46, 0.1);
    padding: 1px 4px;
    border-radius: 2px;
}

.light-mode #logs-card .log-debug {
    color: #6e7781;
}

.light-mode #logs-card .tag {
    font-weight: 700;
}

.light-mode #logs-card ::-webkit-scrollbar-track {
    background: #f6f8fa;
}

.light-mode #logs-card ::-webkit-scrollbar-thumb {
    background: #d0d7de;
    border: 1px solid #afb8c1;
}

.light-mode #logs-card ::-webkit-scrollbar-thumb:hover {
    background: #0969da;
}

.light-mode .modal-container {
    background: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.light-mode .modal-input {
    background: #ffffff;
    border: 1.5px solid #c8d8ec;
    color: #011627;
}

.light-mode .modal-input:focus {
    border-color: #0969da;
    background: #f8fbff;
}

.light-mode .action-btn {
    background: #0969da;
    color: #ffffff;
    border: none;
}

.light-mode .action-btn:hover {
    background: #0550ae;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

/* Light Mode - High-Contrast Text & Badge Highlights */
.light-mode .text-matrix-green {
    color: #1a7f37;
    text-shadow: none;
    font-weight: 600;
}

.light-mode .text-matrix-yellow {
    color: #8c5b00;
    text-shadow: none;
    font-weight: 600;
}

.light-mode .text-green {
    color: #1a7f37;
}

.light-mode .text-blue {
    color: #0969da;
}

.light-mode .text-gray {
    color: #57606a;
}

.light-mode .text-dim {
    color: #57606a;
}

.light-mode .text-red {
    color: #cf222e;
}

.light-mode .bg-green-black {
    background: #dafbe1;
    color: #116329;
    border: 1px solid #4ac26b;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.light-mode .bg-red-white {
    background: #ffebe9;
    color: #cf222e;
    border: 1px solid #ff8182;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.light-mode .bg-yellow-black {
    background: #fff8c5;
    color: #734c00;
    border: 1px solid #d4a72c;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.light-mode .bg-blue-white {
    background: #ddf4ff;
    color: #0969da;
    border: 1px solid #54aeff;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

.light-mode .status-tag {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.light-mode .status-tag.text-blue {
    background: #ddf4ff;
    color: #0969da;
    border-color: #54aeff;
}

.light-mode .status-tag.text-green {
    background: #dafbe1;
    color: #1a7f37;
    border-color: #4ac26b;
}

.light-mode .prompt {
    color: #0969da;
}

.light-mode .cursor {
    color: #0969da;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1440px) {
    .dashboard-grid { 
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 1050px) {
    .dashboard-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    #experience, #skills, #logs-card { 
        grid-column: span 1; 
    }
    .pinned { 
        grid-row: auto; 
    }
}

@media (max-width: 768px) {
    body { 
        padding: 12px 8px; 
        font-size: 14px; 
    }
    .dashboard-grid { 
        grid-template-columns: 1fr; 
        gap: 14px; 
    }
    .top-bar { 
        flex-direction: column; 
        gap: 10px; 
        text-align: center; 
    }
    .header-title { 
        font-size: 0.92em; 
        display: flex; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 6px; 
    }
    .status-row { 
        flex-direction: column; 
        gap: 10px; 
    }
    .status-bar { 
        width: 100%; 
    }
    .data-label { 
        min-width: 100px; 
    }
    .data-value { 
        text-align: left; 
    }
    .modal-container { 
        width: 95%; 
    }
}

@media (max-width: 480px) {
    .data-row { 
        flex-direction: column; 
        gap: 2px; 
    }
    .data-label { 
        min-width: auto; 
    }
    .data-value { 
        text-align: left; 
    }
}
