.dashboard-row {
        min-height: 570px;
    }

    #curriculum .dashboard-row {
        align-items: stretch;
    }@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap');

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

:root {
    --matrix-green: #42a5a5;
    --dim-green: #3d8b8b;
    --subtle-green: #7a9e9e;
    --accent-green: #4fb3b3;
    --bg-black: #050709;
    --bg-darker: #020406;
    --terminal-bg: #0a0e11;
    --card-bg: #0f1419;
    --border-dim: #1a1f23;
    --border-active: #212832;
    --text-bright: #e6edf3;
    --text-dim: #7d8590;
    --text-ghost: #484f58;
    --red-alert: #f85149;
    --yellow-warn: #f0883e;
    --blue-info: #58a6ff;
    --glow: rgba(66, 165, 165, 0.06);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-black);
    color: var(--text-bright);
    line-height: 1.4;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* SCROLL PRINCIPAL VISÍVEL NA DIREITA */
body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--matrix-green) var(--bg-black); /* Firefox */
}

body::-webkit-scrollbar {
    width: 8px; /* WebKit */
}

body::-webkit-scrollbar-track {
    background: var(--bg-black);
}

body::-webkit-scrollbar-thumb {
    background: var(--matrix-green);
    border-radius: 4px;
}

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

/* REMOVER SCROLL BARS INTERNAS (não o principal) */
.terminal-body,
.terminal-medium,
.terminal-widget,
.terminal-large .terminal-body,
.monitor-panel {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.terminal-body::-webkit-scrollbar,
.terminal-medium::-webkit-scrollbar,
.terminal-widget::-webkit-scrollbar,
.terminal-large .terminal-body::-webkit-scrollbar,
.monitor-panel::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Definir overflow como hidden para prevenir scroll */
.terminal-body,
.terminal-medium,
.terminal-widget {
    overflow: hidden;
}

.terminal-large .terminal-body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Matrix rain effect */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.015;
    pointer-events: none;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(66, 165, 165, 0.003) 2px,
        rgba(66, 165, 165, 0.003) 4px
    );
    pointer-events: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(2, 4, 6, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--matrix-green);
    text-shadow: 0 0 4px var(--glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--matrix-green);
    text-shadow: 0 0 3px var(--glow);
}

.nav-links a::before {
    content: '> ';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
}

/* Mobile menu toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 20px;
    height: 2px;
    background: var(--text-dim);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, var(--terminal-bg) 0%, var(--bg-black) 70%);
    position: relative;
    padding: 4rem 0 6rem;
}

.hero-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 480px;
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-ghost);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 165, 165, 0.04), transparent);
    transition: left 0.5s ease;
}

.profile-photo:hover::before {
    left: 100%;
}

.profile-photo:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 12px var(--glow);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.profile-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-ghost);
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--text-ghost);
    text-align: center;
}

.status-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.8rem;
    width: 100%;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    background: var(--card-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--matrix-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero Content */
.hero-content {
    padding: 1.5rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-bright);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--subtle-green);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.hero-description {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Dashboard Terminals */
.dashboard {
    display: grid;
    grid-template-rows: 220px 250px 270px;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 150px);
}

/* Terminal content spacing */
.terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.terminal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.terminal-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* System monitor specific spacing */
.system-monitor .terminal-main {
    justify-content: flex-start;
    gap: 0.3rem;
}

/* Network topology specific spacing */
.network-topology-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 1rem;
}

/* License manager specific spacing */
.license-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.3rem;
}

.license-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.12rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.terminal-widget {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.72rem;
    height: 220px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.terminal-widget:nth-child(2) {
    height: 250px;
}

.terminal-widget:nth-child(3) {
    height: 270px;
}

.terminal-widget:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 8px rgba(66, 165, 165, 0.1);
    transform: translateY(-2px);
}

.terminal-header {
    background: var(--border-dim);
    padding: 0.5rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-active);
}

.terminal-dots {
    display: flex;
    gap: 0.3rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: var(--red-alert); }
.dot.yellow { background: var(--yellow-warn); }
.dot.green { background: var(--matrix-green); }

.terminal-title {
    margin-left: 0.8rem;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 0.8rem 0.8rem 1rem 0.8rem;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-line {
    margin-bottom: 0.2rem;
    opacity: 0;
    animation: terminalType 0.8s ease forwards;
}

.terminal-large .terminal-line {
    opacity: 1 !important;
    animation: none !important;
}

.terminal-line:nth-child(1) { animation-delay: 1s; }
.terminal-line:nth-child(2) { animation-delay: 1.5s; }
.terminal-line:nth-child(3) { animation-delay: 2s; }
.terminal-line:nth-child(4) { animation-delay: 2.5s; }
.terminal-line:nth-child(5) { animation-delay: 3s; }
.terminal-line:nth-child(6) { animation-delay: 3.5s; }
.terminal-line:nth-child(7) { animation-delay: 4s; }

.terminal-large .terminal-line {
    animation-delay: 0s !important;
}

@keyframes terminalType {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.prompt { color: var(--matrix-green); }
.path { color: var(--text-dim); }
.output { color: var(--text-bright); }
.comment { color: var(--text-ghost); }
.error { color: var(--red-alert); }

/* Sections */
.section {
    padding: 4rem 0;
    max-width: 1800px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-header {
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Maior espaçamento para a primeira seção (About) */
#about .section-header {
    margin-top: 5rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Layout for all sections */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: start;
    min-height: 850px;
}

/* Teaching section specific adjustments */
#education .terminal-medium {
    height: 200px !important;
}

#education .monitor-panel {
    height: 900px !important;
    padding: 1rem !important;
}

/* Research section specific adjustments */
#articles .dashboard-row {
    align-items: stretch;
    min-height: 550px !important;
}

#articles .terminal-large {
    height: 550px !important;
    min-height: 550px !important;
}

#articles .terminal-large .terminal-body {
    min-height: 450px !important;
}

#articles .monitor-panel {
    height: 550px !important;
    padding: 1rem !important;
}
#curriculum .dashboard-row {
    align-items: stretch;
    min-height: 800px !important;
}

#curriculum .terminal-large {
    height: 800px !important;
    min-height: 800px !important;
}

#curriculum .terminal-large .terminal-body {
    min-height: 700px !important;
}

#curriculum .monitor-panel {
    height: 800px !important;
    padding: 1rem !important;
}

#curriculum .monitor-panel > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#curriculum .monitor-panel > .panel-title {
    margin-bottom: 0.3rem !important;
}

#curriculum .monitor-panel > .panel-title:last-of-type {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
}

#curriculum .career-timeline-large {
    min-height: 600px !important;
    height: auto !important;
}

/* Terminal Large specific fixes */
.terminal-large {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.75rem;
    height: 850px;
    min-height: 850px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

#articles .terminal-large {
    height: 550px !important;
    min-height: 550px !important;
}

.terminal-large .terminal-body {
    overflow: hidden;
    flex: 1;
    padding: 0.8rem;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.terminal-large .career-timeline-large {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1;
}

.terminal-large:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 12px rgba(66, 165, 165, 0.08);
}

.terminal-medium {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.72rem;
    height: 280px;
    transition: all 0.3s ease;
    cursor: pointer;
}

#education .terminal-medium {
    height: 220px !important;
}

.terminal-medium:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 10px rgba(66, 165, 165, 0.08);
}

.monitor-panel {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    padding: 1.2rem;
    height: 850px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#articles .monitor-panel {
    height: 550px !important;
    padding: 1rem !important;
}

.monitor-panel:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 12px rgba(66, 165, 165, 0.08);
}

.panel-title {
    color: var(--matrix-green);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Curriculum specific - minimize ALL spacing */
#curriculum .panel-title {
    margin-bottom: 0.3rem;
}

#curriculum .panel-title + .security-panel {
    margin-top: 0 !important;
}

#curriculum .panel-title + .ai-neural-net {
    margin-top: 0 !important;
}

#curriculum .ai-neural-net + .panel-title {
    margin-top: 0.4rem;
    margin-bottom: 0.3rem;
}

#curriculum .panel-title:last-of-type {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}



/* ULTIMATE FORCE: Remove all possible spacing above SKILL_MATRIX */
#curriculum .monitor-panel .ai-neural-net {
    margin: 0 !important;
    padding: 0.8rem !important;
    border-top: none !important;
    position: relative !important;
    top: -0.8rem !important;
}

/* Override any flex properties that might add spacing */
#curriculum .monitor-panel {
    gap: 0 !important;
}

#curriculum .monitor-panel > *:nth-child(2) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Force the ai-neural-net to stick directly to security-panel */
#curriculum .security-panel {
    margin-bottom: -0.8rem !important;
}

/* Move Professional Impact up and add organized spacing - FIX */
#curriculum .monitor-panel .panel-title:last-of-type {
    position: relative !important;
    top: 0rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.8rem !important;
    z-index: 10 !important;
}

/* Move the last security panel up too */
#curriculum .monitor-panel .security-panel:last-of-type {
    position: relative !important;
    top: 0rem !important;
    z-index: 10 !important;
}

/* Add organized spacing to Core Skills */
#curriculum .monitor-panel .panel-title:first-of-type {
    margin-bottom: 0.8rem !important;
}

/* Add organized spacing to first security panel */
#curriculum .monitor-panel .security-panel:first-of-type {
    margin-bottom: -0.8rem !important;
}

.panel-title::before {
    content: '▸';
    color: var(--matrix-green);
}

/* Career Timeline Large (for terminal) */
.career-timeline-large {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
    color: var(--matrix-green) !important;
    white-space: pre-wrap !important;
    margin: 0.5rem 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0s !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 650px !important;
    width: 100% !important;
    padding: 0.5rem !important;
    background: rgba(66, 165, 165, 0.05) !important;
    border: 1px solid var(--border-dim) !important;
    border-radius: 4px !important;
}

/* CURRICULUM SECTION - OVERRIDE ALL HEIGHTS */
#curriculum .career-timeline-large {
    min-height: 600px !important;
    height: auto !important;
    flex: 1 !important;
}

/* Career Timeline */
.career-timeline {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.6rem !important;
    line-height: 1.3 !important;
    color: var(--matrix-green) !important;
    white-space: pre !important;
    background: var(--bg-darker) !important;
    padding: 0.8rem !important;
    border-radius: 4px !important;
    border: 1px solid var(--border-dim) !important;
    margin: 0.8rem 0 !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px !important;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.career-timeline::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 1px;
    background: linear-gradient(to bottom, 
        var(--matrix-green) 0%, 
        var(--dim-green) 50%, 
        var(--matrix-green) 100%);
    opacity: 0.3;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Mini Dashboard */
.mini-dashboard {
    margin: 1rem 0;
}

.activity-chart {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--matrix-green);
    white-space: pre;
    background: var(--bg-darker);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    text-align: center;
}

/* ASCII Art and Diagrams */
.ascii-art {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.2;
    color: var(--matrix-green);
    white-space: pre;
    background: var(--bg-darker);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    margin: 0.8rem 0;
}

.network-topology {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    line-height: 1.3;
    color: var(--matrix-green);
    white-space: pre;
    background: var(--bg-darker);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    margin: 0.8rem 0;
}

.ai-neural-net {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    line-height: 1.2;
    color: var(--matrix-green);
    white-space: pre;
    background: var(--bg-darker);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    flex: 1;
}

/* CURRICULUM SPECIFIC - FORCE NO SPACE ABOVE SKILL_MATRIX */
#curriculum .ai-neural-net {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(-52px) !important;
}

/* Fix Professional Impact positioning */
#curriculum .panel-title:last-of-type {
    transform: translateY(-20px) !important;
    margin-top: 1.5rem !important;
}

#curriculum .security-panel:last-of-type {
    transform: translateY(-20px) !important;
}



/* Security monitoring */
.security-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1rem;
}

/* Curriculum specific - FORCE ZERO margin-top on security panels */
#curriculum .security-panel {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#curriculum .panel-title + .security-panel {
    margin-top: 0 !important;
}

/* Curriculum section specific - 6 stats grid with better spacing */
#curriculum .monitor-panel .security-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    gap: 0.8rem;
    flex: 1;
}



.security-stat {
    background: var(--card-bg);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-dim);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.security-stat:hover {
    border-color: var(--matrix-green);
    background: rgba(66, 165, 165, 0.05);
    transform: scale(1.02);
}

.security-stat .label {
    color: var(--text-ghost);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.security-stat .value {
    color: var(--matrix-green);
    font-size: 1rem;
    font-weight: 600;
}

.security-stat.alert .value {
    color: var(--red-alert);
}

.security-stat.warn .value {
    color: var(--yellow-warn);
}

/* Process monitoring */
.process-list {
    font-size: 0.68rem;
    line-height: 1.4;
}

.process-header {
    color: var(--matrix-green);
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.3rem;
    margin-bottom: 0.5rem;
}

.process-item {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--border-active);
}

.process-name {
    color: var(--text-bright);
}

.process-status {
    color: var(--matrix-green);
}

.process-status.error {
    color: var(--red-alert);
}

/* Research terminal specific styles */
.research-pipeline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pipeline-active { color: var(--matrix-green); }
.pipeline-processing { color: var(--yellow-warn); }
.pipeline-pending { color: var(--text-ghost); }
.pipeline-error { color: var(--red-alert); }

/* License system styles */
.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0;
    font-size: 0.6rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.license-key {
    color: var(--text-bright);
}

.license-status {
    color: var(--matrix-green);
}

.license-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-dim);
    flex-shrink: 0;
}

.license-btn {
    padding: 0.25rem 0.7rem;
    border: 1px solid;
    border-radius: 4px;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 500;
}

.license-btn.cancel {
    color: var(--red-alert);
    border-color: var(--red-alert);
}

.license-btn.cancel:hover {
    background: rgba(248, 81, 73, 0.1);
    box-shadow: 0 0 5px rgba(248, 81, 73, 0.3);
}

.license-btn.renew {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
}

.license-btn.renew:hover {
    background: rgba(66, 165, 165, 0.1);
    box-shadow: 0 0 5px rgba(66, 165, 165, 0.3);
}

/* Teaching Dashboard Styles */
.teaching-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
    min-height: 450px;
    overflow: visible;
}

.teaching-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}

.teaching-metric {
    background: var(--card-bg);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-dim);
    transition: all 0.3s ease;
}

.teaching-metric:hover {
    border-color: var(--matrix-green);
    background: rgba(66, 165, 165, 0.05);
}

.metric-label {
    color: var(--text-ghost);
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}

.metric-value {
    color: var(--matrix-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: var(--border-dim);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--matrix-green), var(--accent-green));
    border-radius: 2px;
    transition: width 0.8s ease;
}

.subjects-overview {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    line-height: 1.3;
    color: var(--matrix-green);
    white-space: pre;
    background: var(--bg-darker);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-dim);
    margin: 0.8rem 0;
    text-align: left;
    min-height: 120px;
    overflow: visible;
    flex-shrink: 0;
}

.teaching-stats {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-shrink: 0;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 4px;
}

.stat-label {
    color: var(--text-ghost);
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
}

.stat-value {
    color: var(--matrix-green);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive adjustments for teaching dashboard */
@media (max-width: 768px) {
    .teaching-grid {
        grid-template-columns: 1fr;
    }
    
    .teaching-stats {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .subjects-overview {
        font-size: 0.6rem;
        padding: 0.6rem;
        min-height: 100px;
    }
    
    #education .monitor-panel {
        height: auto !important;
        min-height: 500px !important;
    }
}

@media (max-width: 480px) {
    .subjects-overview {
        font-size: 0.55rem;
        padding: 0.5rem;
        min-height: 90px;
    }
    
    .teaching-metric {
        padding: 0.6rem;
    }
    
    #education .monitor-panel {
        height: auto !important;
        min-height: 480px !important;
    }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-terminal {
    background: var(--terminal-bg);
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.75rem;
    height: 180px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-terminal:hover {
    border-color: var(--matrix-green);
    box-shadow: 0 0 8px rgba(66, 165, 165, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-dim);
    padding: 1.5rem 0;
    color: var(--text-ghost);
    font-size: 0.8rem;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-ghost);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.social-link:hover {
    color: var(--matrix-green);
    border-color: var(--matrix-green);
    background: rgba(66, 165, 165, 0.05);
    text-shadow: 0 0 3px var(--glow);
}

.social-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-label {
    font-size: 0.7rem;
    text-transform: lowercase;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .social-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-link {
        gap: 0.3rem;
        padding: 0.25rem 0.5rem;
    }
    
    .social-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1rem 0;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-content p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        gap: 0.25rem;
        padding: 0.2rem 0.4rem;
    }
    
    .social-icon {
        font-size: 0.8rem;
    }
    
    .social-label {
        font-size: 0.6rem;
    }
}

/* Loading spinner for processing states */
.loading-spinner {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: 1px solid var(--matrix-green);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status indicators */
.status-processing {
    color: var(--yellow-warn);
}

.status-active {
    color: var(--matrix-green);
}

.status-pending {
    color: var(--text-ghost);
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Glitch effect */
@keyframes glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

/* Mobile Responsive */
/* Large screens - ensure content fits properly */
@media (min-width: 1401px) {
    .dashboard {
        max-width: 500px;
        gap: 1rem;
        grid-template-rows: 220px 250px 270px;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 200px);
    }

    .terminal-widget {
        height: 220px;
    }

    .terminal-widget:nth-child(2) {
        height: 250px;
    }

    .terminal-widget:nth-child(3) {
        height: 270px;
    }

    .terminal-body {
        font-size: 0.7rem;
        padding: 1.2rem 1.2rem 1.4rem 1.2rem;
    }

    .terminal-line {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
    }

    .network-topology {
        font-size: 0.65rem;
    }

    .license-item {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .terminal-large {
        height: 920px;
        min-height: 920px;
    }

    #curriculum .terminal-large {
        height: 720px;
        min-height: 720px;
    }

    #articles .terminal-large {
        height: 650px;
        min-height: 650px;
    }

    .career-timeline-large {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        min-height: 750px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 520px !important;
    }

    .monitor-panel {
        height: 920px;
    }

    #curriculum .monitor-panel {
        height: 720px;
    }

    #articles .monitor-panel {
        height: 650px;
    }

    #education .monitor-panel {
        height: 850px;
    }

    .terminal-medium {
        height: 320px;
    }

    #education .terminal-medium {
        height: 280px;
    }

    #education .terminal-medium {
        height: 250px;
    }
}

@media (max-width: 1400px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        max-width: 1200px;
        justify-items: center;
    }
    
    .dashboard {
        grid-template-rows: 205px 235px 255px;
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 0.8rem;
        max-height: calc(100vh - 220px);
    }

    .terminal-widget {
        width: 100%;
        height: 205px;
    }

    .terminal-widget:nth-child(2) {
        height: 235px;
    }

    .terminal-widget:nth-child(3) {
        height: 255px;
    }

    .terminal-body {
        font-size: 0.65rem;
        padding: 0.8rem 0.8rem 1rem 0.8rem;
    }

    .terminal-line {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
    }

    .network-topology {
        font-size: 0.6rem;
    }

    .license-item {
        font-size: 0.55rem;
        margin-bottom: 0.2rem;
    }

    .terminal-large {
        height: 770px;
        font-size: 0.72rem;
        min-height: 770px;
    }

    #curriculum .terminal-large {
        height: 620px;
        min-height: 620px;
    }

    #articles .terminal-large {
        height: 550px;
        min-height: 550px;
    }

    .monitor-panel {
        height: 770px;
    }

    #curriculum .monitor-panel {
        height: 620px;
    }

    #articles .monitor-panel {
        height: 550px;
    }

    #education .monitor-panel {
        height: 750px;
    }

    .career-timeline-large {
        font-size: 0.68rem !important;
        line-height: 1.3 !important;
        min-height: 650px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 450px !important;
    }

    .terminal-medium {
        height: 320px;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
        min-height: 770px;
    }

    #curriculum .dashboard-row {
        align-items: stretch;
        min-height: 620px;
    }

    #articles .dashboard-row {
        align-items: stretch;
        min-height: 550px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 0;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .section-header {
        margin-top: 2.5rem;
        margin-bottom: 1.8rem;
    }

    #about .section-header {
        margin-top: 4rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }
}

@media (max-width: 968px) {
    .dashboard {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        max-width: 650px;
        gap: 0.8rem;
    }

    .dashboard .terminal-widget:last-child {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
        height: 220px;
    }

    .terminal-widget {
        min-width: 280px;
        height: 170px;
    }

    .terminal-widget:nth-child(2) {
        height: 200px;
    }

    .terminal-body {
        font-size: 0.58rem;
        padding: 0.8rem;
        line-height: 1.2;
    }

    .terminal-line {
        font-size: 0.58rem;
        margin-bottom: 0.12rem;
    }

    .network-topology {
        font-size: 0.54rem;
        line-height: 1.1;
    }

    .license-item {
        font-size: 0.48rem;
        margin-bottom: 0.15rem;
    }

    .terminal-large {
        height: 670px;
        font-size: 0.68rem;
        min-height: 670px;
    }

    #curriculum .terminal-large {
        height: 520px;
        min-height: 520px;
    }

    #articles .terminal-large {
        height: 470px;
        min-height: 470px;
    }

    .career-timeline-large {
        font-size: 0.62rem !important;
        line-height: 1.2 !important;
        min-height: 550px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 350px !important;
    }

    .monitor-panel {
        height: 670px;
    }

    #curriculum .monitor-panel {
        height: 520px;
    }

    #articles .monitor-panel {
        height: 470px;
    }

    .terminal-medium {
        height: 250px;
    }

    #education .terminal-medium {
        height: 220px;
    }

    .dashboard-row {
        min-height: 670px;
    }

    #curriculum .dashboard-row {
        align-items: stretch;
        min-height: 520px;
    }

    #articles .dashboard-row {
        align-items: stretch;
        min-height: 470px;
    }

    .section {
        padding: 3rem 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section-header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    #about .section-header {
        margin-top: 3.5rem;
    }

    .hero {
        padding: 4rem 0 4rem;
    }
}

/* Mobile medium screens */
@media (max-width: 768px) and (min-width: 481px) {
    .terminal-widget {
        height: 200px;
    }

    .terminal-body {
        font-size: 0.58rem;
        padding: 0.8rem;
    }

    .license-list {
        gap: 0.18rem;
    }

    .section {
        padding: 3rem 0;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .section-header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    #about .section-header {
        margin-top: 3rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .monitor-panel {
        padding: 0.9rem;
    }

    .terminal-large {
        height: 620px;
        min-height: 620px;
    }

    #curriculum .terminal-large {
        height: 480px;
        min-height: 480px;
    }

    #articles .terminal-large {
        height: 420px;
        min-height: 420px;
    }

    .career-timeline-large {
        font-size: 0.7rem !important;
        line-height: 1.25 !important;
        min-height: 500px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 320px !important;
    }

    .monitor-panel {
        height: 620px;
    }

    #curriculum .monitor-panel {
        height: 480px;
    }

    #articles .monitor-panel {
        height: 420px;
    }

    #education .monitor-panel {
        height: 650px;
    }

    .terminal-medium {
        height: 220px;
    }

    #education .terminal-medium {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-container {
        padding: 0 1rem;
        gap: 1.5rem;
        justify-items: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .dashboard {
        grid-template-columns: 1fr;
        grid-template-rows: 155px 185px 205px;
        gap: 0.8rem;
        max-width: 350px;
        max-height: none;
    }

    .dashboard .terminal-widget:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
        height: 205px;
    }

    .terminal-widget {
        width: 100%;
        height: 155px;
    }

    .terminal-widget:nth-child(2) {
        height: 185px;
    }

    .terminal-body {
        font-size: 0.55rem;
        padding: 0.5rem;
    }

    .terminal-line {
        font-size: 0.55rem;
        margin-bottom: 0.1rem;
    }

    .network-topology {
        font-size: 0.45rem;
        line-height: 1.0;
    }

    .license-item {
        font-size: 0.45rem;
        margin-bottom: 0.15rem;
    }

    .license-key {
        white-space: normal;
        word-break: break-all;
    }

    .terminal-widget, .terminal-medium {
        height: 180px;
        font-size: 0.68rem;
    }

    .terminal-large {
        height: 570px;
        font-size: 0.75rem;
        min-height: 570px;
    }

    #curriculum .terminal-large {
        height: 450px;
        min-height: 450px;
    }

    #articles .terminal-large {
        height: 400px;
        min-height: 400px;
    }

    .career-timeline-large {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        min-height: 450px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 300px !important;
    }

    .monitor-panel {
        height: 570px;
        padding: 0.8rem;
    }

    #curriculum .monitor-panel {
        height: 450px;
        padding: 0.8rem;
    }

    #articles .monitor-panel {
        height: 400px;
        padding: 0.8rem;
    }

    #education .monitor-panel {
        height: 620px;
        padding: 0.8rem;
    }

    .terminal-medium {
        height: 200px;
    }

    #education .terminal-medium {
        height: 180px;
    }
    
    .dashboard-row {
        min-height: 570px;
    }

    #curriculum .dashboard-row {
        align-items: stretch;
        min-height: 450px;
    }

    #articles .dashboard-row {
        align-items: stretch;
        min-height: 400px;
    }
    
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .section {
        padding: 3rem 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section-header {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    #about .section-header {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .ascii-art, .ai-neural-net, .research-pipeline, .network-topology, .activity-chart, .career-timeline-large {
        font-size: 0.55rem;
        line-height: 1.2;
    }

    .security-panel {
        grid-template-columns: 1fr;
    }

    /* Curriculum section keeps 2 columns on mobile */
    #curriculum .monitor-panel .security-panel {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 0.5rem;
        justify-items: center;
    }

    .hero {
        padding: 4rem 0 2.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .dashboard {
        max-width: 300px;
        gap: 0.6rem;
        grid-template-rows: 145px 175px 195px;
    }

    .terminal-widget {
        height: 145px;
        font-size: 0.6rem;
    }

    .terminal-widget:nth-child(2) {
        height: 175px;
    }

    .dashboard .terminal-widget:last-child {
        height: 195px;
    }

    .terminal-medium {
        height: 145px;
        font-size: 0.6rem;
    }

    #education .terminal-medium {
        height: 130px;
    }

    .terminal-large {
        height: 520px;
        font-size: 0.65rem;
        min-height: 520px;
    }

    #curriculum .terminal-large {
        height: 420px;
        min-height: 420px;
    }

    #articles .terminal-large {
        height: 360px;
        min-height: 360px;
    }

    .career-timeline-large {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        min-height: 400px !important;
    }

    #curriculum .career-timeline-large {
        min-height: 280px !important;
    }

    .monitor-panel {
        padding: 1rem;
        height: 520px;
    }

    #curriculum .monitor-panel {
        padding: 1rem;
        height: 420px;
    }

    #articles .monitor-panel {
        padding: 1rem;
        height: 360px;
    }

    #education .monitor-panel {
        padding: 1rem;
        height: 580px;
    }

    .dashboard-row {
        min-height: 520px;
    }

    #curriculum .dashboard-row {
        align-items: stretch;
        min-height: 420px;
    }

    #articles .dashboard-row {
        align-items: stretch;
        min-height: 360px;
    }

    .ascii-art, .ai-neural-net, .research-pipeline, .network-topology, .activity-chart, .career-timeline-large {
        font-size: 0.5rem;
        line-height: 1.1;
        padding: 0.8rem;
    }

    .section {
        padding: 2.5rem 0;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .section-header {
        margin-top: 1.5rem;
        margin-bottom: 1.2rem;
    }

    #about .section-header {
        margin-top: 2.5rem;
    }
}