/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

body {
    background: #000;
    color: #00ff00;
    overflow-x: hidden;
}

/* ===== BOOT SCREEN ===== */
.boot-screen {
    min-height: 100vh;
    background: #000;
    color: #00ff00;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.boot-sequence {
    max-width: 800px;
    margin: 100px auto;
}

.boot-line {
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    margin: 8px 0;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== MAIN APP ===== */
.main-app {
    min-height: 100vh;
    background: #000;
    color: #00ff00;
    overflow: hidden;
    position: relative;
}

/* ===== CRT EFFECTS ===== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 49;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 48;
    opacity: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.1),
        rgba(0, 255, 0, 0.1) 2px,
        transparent 2px,
        transparent 4px
    );
}

.glitch-overlay.active {
    animation: glitch 0.3s;
}

@keyframes glitch {
    0%, 100% { opacity: 0; transform: translateX(0); }
    20% { opacity: 1; transform: translateX(-5px); }
    40% { opacity: 1; transform: translateX(5px); }
    60% { opacity: 1; transform: translateX(-5px); }
    80% { opacity: 1; transform: translateX(5px); }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(transparent 0%, transparent 70%, rgba(0, 255, 0, 0.03) 100%),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 0, 0.02) 0px,
            transparent 1px,
            transparent 20px
        );
    z-index: 1;
    opacity: 0.3;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.window-header {
    border-bottom: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.window-buttons {
    display: flex;
    gap: 0.5rem;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-btn.red {
    background: #ff5555;
    box-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
}

.window-btn.yellow {
    background: #ffff55;
    box-shadow: 0 0 10px rgba(255, 255, 85, 0.5);
}

.window-btn.green {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
}

.glow {
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.7);
}

.header-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ===== NAVIGATION ===== */
.nav-bar {
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.nav-button {
    background: none;
    border: none;
    color: #00ff00;
    cursor: pointer;
    padding: 0.25rem 0;
    position: relative;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.nav-button:hover {
    color: #00ffff;
}

.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ff00, #00ffff);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.8);
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TERMINAL FOOTER ===== */
.terminal-footer {
    border-top: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.75rem 1.5rem;
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-icon {
    color: #00ffff;
    flex-shrink: 0;
}

.terminal-prompt-symbol {
    color: #00ffff;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'IBM Plex Mono', monospace;
}

.terminal-input::placeholder {
    color: rgba(0, 255, 0, 0.3);
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ===== COMMON COMPONENTS ===== */
.neon-box {
    border: 1px solid #00ff00;
    box-shadow: 
        inset 0 0 20px rgba(0, 255, 0, 0.1),
        0 0 20px rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
}

.ascii-border {
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.3s;
    font-size: 0.875rem;
}

.skill-tag:hover {
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.project-card {
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.project-card:hover {
    border-color: #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    transform: translateX(5px);
}

/* ===== PAGE STYLES ===== */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: pageLoad 0.3s ease-out;
}

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

.ascii-art {
    font-size: 0.75rem;
    line-height: 1.2;
    opacity: 0.8;
    overflow-x: auto;
}

.ascii-art pre {
    margin: 0;
}

/* ===== HOME PAGE ===== */
.hero-box {
    margin-top: 2rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-features {
    border-left: 2px solid #00ffff;
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.hero-features div {
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.stat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

.status-line {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 2rem;
    text-align: center;
}

/* ===== ABOUT PAGE ===== */
.section-header {
    border-left: 4px solid #00ffff;
    padding-left: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 1rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: 0.9;
}

.skills-section {
    margin-top: 2rem;
}

.skills-header {
    font-size: 1.25rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 1.5rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.category-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title::before {
    content: '>';
    color: #00ff00;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.philosophy-box {
    margin-top: 2rem;
}

.philosophy-title {
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.philosophy-list {
    font-size: 0.875rem;
    opacity: 0.9;
}

.philosophy-list div {
    margin: 0.5rem 0;
}

/* ===== PROJECTS PAGE ===== */
.projects-header {
    margin-bottom: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.project-icon {
    color: #00ffff;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #00ff00;
}

.project-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.status-active {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status-complete {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border: 1px solid #00ffff;
}

.project-desc {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.05);
}

.github-link-box {
    margin-top: 2rem;
    text-align: center;
}

.github-label {
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.github-link {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-box {
    padding: 2rem;
}

.contact-icon {
    color: #00ffff;
    margin-bottom: 1rem;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-label {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.125rem;
    color: #00ff00;
    font-weight: bold;
}

.pgp-section {
    margin-bottom: 2rem;
}

.pgp-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pgp-key {
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.comm-guidelines {
    font-size: 0.875rem;
    opacity: 0.7;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.guidelines-title {
    margin-bottom: 0.5rem;
    color: #ffff00;
}

.comm-guidelines div {
    margin: 0.25rem 0;
}

/* ===== SYSTEM PAGE ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric-box {
    padding: 1.5rem;
}

.metric-label {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #000;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.progress-fill.cpu {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.progress-fill.memory {
    background: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.processes-section {
    margin-bottom: 1.5rem;
}

.processes-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 1rem;
}

.process-list {
    font-size: 0.875rem;
    font-family: 'IBM Plex Mono', monospace;
}

.process-item {
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
    margin: 0.5rem 0;
}

.process-status {
    font-weight: bold;
}

.status-running { color: #00ff00; }
.status-idle { color: #ffff00; }
.status-active { color: #00ffff; }

.waifu-section {
    margin-bottom: 1.5rem;
}

.waifu-title {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.waifu-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border: 1px solid rgba(0, 255, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.waifu-box {
    width: 192px;
    height: 192px;
    border: 2px dashed #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.waifu-text {
    color: #00ffff;
    opacity: 0.5;
    font-size: 0.875rem;
    line-height: 1.5;
}

.waifu-status {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 1rem;
}

.waifu-comment {
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.5;
}

.system-specs {
    font-size: 0.75rem;
    opacity: 0.5;
    padding: 1rem;
    border: 1px solid rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.system-specs div {
    margin: 0.25rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats-grid,
    .contact-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}
