/* ═══════════════════════════════════════════════════════════════
   IoTWiz — Terminal Portfolio Stylesheet
   Design: Hacker IDE / Code Editor aesthetic
   Font: JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    --bg-dark: #0a0e17;
    --bg-panel: #111827;
    --bg-sidebar: #0d1220;
    --bg-editor: #0f1629;
    --bg-tab: #1a2332;
    --bg-tab-active: #0f1629;
    --bg-input: #0d1220;

    --accent-green: #00ff9d;
    --accent-cyan: #00d4ff;
    --accent-purple: #a855f7;
    --accent-orange: #ff6b35;
    --accent-red: #ff4757;
    --accent-yellow: #ffd43b;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #334155;

    --border: #1e293b;
    --border-light: #2d3a4f;

    --glow-green: 0 0 20px rgba(0, 255, 157, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.3);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);

    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.7;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ─── SCANLINE OVERLAY ─── */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    z-index: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 157, 0.015) 2px,
            rgba(0, 255, 157, 0.015) 4px);
}

/* ─── MATRIX RAIN CANVAS ─── */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL WINDOW
   ═══════════════════════════════════════════════════════════════ */
.terminal-window {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100vh;
    border: 1px solid var(--border);
    overflow: hidden;
    pointer-events: auto;
}

/* ─── TITLE BAR ─── */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 0 12px;
    flex-shrink: 0;
    -webkit-app-region: drag;
}

.title-bar__controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.title-bar__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer;
}

.title-bar__dot--red {
    background: #ff5f57;
}

.title-bar__dot--yellow {
    background: #ffbd2e;
}

.title-bar__dot--green {
    background: #28c840;
}

.title-bar__dot:hover {
    filter: brightness(1.3);
    transform: scale(1.15);
}

.title-bar__title {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.title-bar__icon {
    color: var(--accent-green);
    font-size: 16px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(0, 255, 157, 0.5);
    }

    50% {
        text-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
    }
}

.title-bar__actions {
    display: flex;
    align-items: center;
}

/* ─── HAMBURGER (mobile) ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ═══════════════════════════════════════════════════════════════
   WORKSPACE (Sidebar + Editor)
   ═══════════════════════════════════════════════════════════════ */
.workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
    width: 240px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar__header {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.sidebar__section {
    padding: 8px 0;
}

.sidebar__section-title {
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar__section-title .arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 28px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    pointer-events: auto;
    user-select: none;
}

.sidebar__item:hover {
    background: rgba(0, 255, 157, 0.12);
    color: var(--accent-green);
    padding-left: 32px;
}

.sidebar__item:active {
    background: rgba(0, 255, 157, 0.2);
    transform: scale(0.98);
}

.sidebar__item.active {
    background: rgba(0, 255, 157, 0.08);
    color: var(--accent-green);
}

.sidebar__item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-green);
    box-shadow: var(--glow-green);
}

.sidebar__icon {
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar__filename {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar__item--page {
    opacity: 0.6;
}

.sidebar__item--page:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   EDITOR
   ═══════════════════════════════════════════════════════════════ */
.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-editor);
}

/* ─── TABS ─── */
.editor__tabs {
    display: flex;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.editor__tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    pointer-events: auto;
    user-select: none;
}

.editor__tab:hover {
    background: var(--bg-tab);
    color: var(--accent-green);
}

.editor__tab:active {
    background: rgba(0, 255, 157, 0.1);
}

.editor__tab.active {
    background: var(--bg-tab-active);
    color: var(--text-primary);
}

.editor__tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-green);
    box-shadow: var(--glow-green);
}

.editor__tab-icon {
    font-size: 12px;
}

.editor__tab-close {
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.editor__tab:hover .editor__tab-close {
    opacity: 0.5;
}

/* ─── EDITOR CONTENT ─── */
.editor__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
    position: relative;
}

/* ─── SECTIONS ─── */
.section {
    display: none;
    animation: fadeInSection 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── LINE NUMBERS & LINES ─── */
.code-block {
    position: relative;
    counter-reset: line-counter;
}

.line {
    display: flex;
    align-items: baseline;
    min-height: 24px;
    padding: 0 4px;
}

.line:hover {
    background: rgba(255, 255, 255, 0.02);
}

.line-number {
    counter-increment: line-counter;
    min-width: 40px;
    text-align: right;
    padding-right: 16px;
    color: var(--text-dark);
    font-size: 12px;
    user-select: none;
    flex-shrink: 0;
}

.line-number::before {
    content: counter(line-counter);
}

/* ─── SYNTAX HIGHLIGHTING ─── */
.comment {
    color: var(--text-muted);
    font-style: italic;
}

.keyword {
    color: var(--accent-purple);
    font-weight: 600;
}

.function {
    color: var(--accent-cyan);
}

.string {
    color: var(--accent-green);
}

.key {
    color: var(--accent-cyan);
}

.property {
    color: var(--accent-orange);
}

.punctuation {
    color: var(--text-muted);
}

.value-green {
    color: var(--accent-green);
    font-weight: 600;
}

.highlight-green {
    color: var(--accent-green);
    font-weight: 500;
}

.highlight-cyan {
    color: var(--accent-cyan);
    font-weight: 500;
}

.highlight-purple {
    color: var(--accent-purple);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   HERO BLOCK
   ═══════════════════════════════════════════════════════════════ */
.hero-block {
    padding: 30px 0 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.ascii-art {
    color: var(--accent-green);
    font-size: 11px;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
    white-space: pre;
    animation: ascii-flicker 4s ease-in-out infinite;
}

@keyframes ascii-flicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.8;
    }

    94% {
        opacity: 1;
    }

    96% {
        opacity: 0.9;
    }

    97% {
        opacity: 1;
    }
}

.hero-info {
    flex: 1;
    min-width: 280px;
}

.typing-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    padding: 12px 0;
}

.prompt {
    color: var(--accent-green);
    font-weight: 600;
    white-space: nowrap;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 500;
}

.cursor {
    color: var(--accent-green);
    animation: blink-cursor 1s step-end infinite;
    font-size: 18px;
}

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

.hero-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease 1.5s;
}

.hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    padding: 4px 14px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.tag:nth-child(1) {
    border-color: rgba(0, 255, 157, 0.3);
    color: var(--accent-green);
}

.tag:nth-child(2) {
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--accent-cyan);
}

.tag:nth-child(3) {
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

/* ─── ABOUT CONTENT ─── */
.about-content {
    padding: 10px 0 20px;
}

.terminal-output {
    padding: 0 0 20px 56px;
}

.terminal-output p {
    padding: 6px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prompt-mini {
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 8px;
}

.fade-in-line {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

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

/* ─── STATS GRID ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0 0 56px;
}

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--glow-green);
}

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

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── GLITCH EFFECT ─── */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch::before {
    color: var(--accent-cyan);
    animation: glitch-1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--accent-purple);
    animation: glitch-2 3s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    95% {
        transform: translate(0);
    }

    96% {
        transform: translate(-2px, 1px);
    }

    97% {
        transform: translate(2px, -1px);
    }

    98% {
        transform: translate(-1px, 2px);
    }

    99% {
        transform: translate(1px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

@keyframes glitch-2 {

    0%,
    95% {
        transform: translate(0);
    }

    96% {
        transform: translate(2px, -1px);
    }

    97% {
        transform: translate(-2px, 1px);
    }

    98% {
        transform: translate(1px, -2px);
    }

    99% {
        transform: translate(-1px, 2px);
    }

    100% {
        transform: translate(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════════════════════ */
.skills-container {
    padding: 10px 0 20px 56px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-items {
    padding: 12px 0 0 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.skill-name {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 280px;
    flex-shrink: 0;
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
}

.skill-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.skill-fill.animated {
    width: var(--level);
}

/* ─── TOOLS GRID ─── */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 0 20px;
}

.tool-badge {
    padding: 6px 14px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    cursor: default;
}

.tool-badge:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.tool-badge.small {
    padding: 3px 10px;
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE / EXPERIENCE
   ═══════════════════════════════════════════════════════════════ */
.timeline {
    padding: 20px 0 20px 76px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 76px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-cyan), var(--accent-purple));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-editor);
    border: 2px solid var(--accent-green);
    box-shadow: var(--glow-green);
    z-index: 1;
}

.timeline-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    transform: translateX(4px);
}

.timeline-date {
    font-size: 12px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 13px;
    margin-bottom: 12px;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    font-size: 12px;
    padding: 2px 0;
}

/* ═══════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0 20px 56px;
}

.cert-card {
    display: flex;
    gap: 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-3px);
}

.cert-badge {
    font-size: 28px;
    flex-shrink: 0;
}

.cert-info .line {
    min-height: 20px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px 0 20px 56px;
}

.project-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-4px);
    box-shadow: var(--glow-green);
}

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

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.project-icon {
    font-size: 20px;
}

.project-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.project-status {
    font-size: 11px;
    font-weight: 600;
}

.status-live {
    color: var(--accent-green);
}

.status-dev {
    color: var(--accent-yellow);
}

.project-desc {
    font-size: 12px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-container {
    padding: 10px 0 20px 56px;
}

.contact-terminal .line {
    font-size: 13px;
}

.contact-form {
    margin-top: 20px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.1);
}

.form-input::placeholder {
    color: var(--text-dark);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    color: var(--accent-green);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: rgba(0, 255, 157, 0.1);
    box-shadow: var(--glow-green);
    transform: translateY(-2px);
}

.contact-links {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan);
}

.contact-link-icon {
    font-size: 18px;
    color: var(--accent-cyan);
}

/* ─── INLINE FORM RESPONSE ─── */
.terminal-response-inline {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    animation: fadeInSection 0.5s ease;
}

.terminal-response-inline.success {
    background: rgba(0, 255, 157, 0.06);
    border-color: rgba(0, 255, 157, 0.3);
    color: var(--text-secondary);
}

.terminal-response-inline.error {
    background: rgba(255, 71, 87, 0.06);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   TERMINAL INPUT
   ═══════════════════════════════════════════════════════════════ */
.terminal-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.terminal-input .prompt {
    font-size: 12px;
    white-space: nowrap;
}

.terminal-input__field {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
}

.terminal-input__field::placeholder {
    color: var(--text-dark);
}

/* ═══════════════════════════════════════════════════════════════
   STATUS BAR
   ═══════════════════════════════════════════════════════════════ */
.statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background: #1a1a2e;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    font-size: 11px;
}

.statusbar__left,
.statusbar__right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.statusbar__item {
    padding: 0 10px;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: default;
}

.statusbar__item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.statusbar__branch {
    color: var(--accent-green);
}

.statusbar__errors {
    color: var(--accent-green);
}

.statusbar__connection {
    display: flex;
    align-items: center;
    gap: 6px;
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px rgba(0, 255, 157, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .skill-name {
        min-width: unset;
    }

    .skill-bar {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 40px;
        bottom: 0;
        z-index: 100;
        width: 260px;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        left: 0;
    }

    .editor__tabs {
        display: none;
    }

    .editor__content {
        padding: 16px;
    }

    .hero-block {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .ascii-art {
        font-size: 8px;
    }

    .typing-container {
        font-size: 14px;
        flex-wrap: wrap;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
    }

    .terminal-output {
        padding-left: 0;
    }

    .skills-container {
        padding-left: 0;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 30px;
    }

    .certs-grid {
        padding-left: 0;
    }

    .projects-grid {
        padding-left: 0;
    }

    .contact-container {
        padding-left: 0;
    }

    .title-bar__title {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-value {
        font-size: 24px;
    }

    .hero-subtitle .tag {
        font-size: 10px;
        padding: 3px 10px;
    }
}